Mantid
|
Policy class controlling creation of the singleton Implementation classes should mark their default constructors private and insert a friend declaration for this class, e.g.: More...
#include <SingletonHolder.h>
Static Public Member Functions | |
static T * | create () |
create an object using the new operator More... | |
static void | destroy (T *p) |
delete an object instantiated using Create More... | |
Policy class controlling creation of the singleton Implementation classes should mark their default constructors private and insert a friend declaration for this class, e.g.:
friend struct Mantid::Kernel::CreateUsingNew<SingletonImplClass>;
Definition at line 67 of file SingletonHolder.h.
|
inlinestatic |
create an object using the new operator
Definition at line 70 of file SingletonHolder.h.
Referenced by Mantid::Kernel::SingletonHolder< T >::Instance().
|
inlinestatic |
delete an object instantiated using Create
p | :: pointer to instance to destroy |
Definition at line 73 of file SingletonHolder.h.
Referenced by Mantid::Kernel::SingletonHolder< T >::Instance().