TuttleOFX
1
|
Singleton<ClassSingleton> Can transform a class into Singleton (by inheriting this class) More...
#include <Singleton.hpp>
Static Public Member Functions | |
static T & | instance () |
return the unique instance of Singleton<T> class | |
static void | destroy () |
destroy the unique instance of Singleton<T> class | |
Protected Member Functions | |
Singleton () | |
virtual | ~Singleton ()=0 |
Private Member Functions | |
Singleton (const Singleton &) | |
Singleton & | operator= (const Singleton &) |
Static Private Attributes | |
static T * | inst = NULL |
Singleton<ClassSingleton> Can transform a class into Singleton (by inheriting this class)
Definition at line 15 of file Singleton.hpp.
Definition at line 20 of file Singleton.hpp.
Definition at line 24 of file Singleton.hpp.
Definition at line 54 of file Singleton.hpp.
static void Singleton< T >::destroy | ( | ) | [inline, static] |
destroy the unique instance of Singleton<T> class
Definition at line 42 of file Singleton.hpp.
static T& Singleton< T >::instance | ( | ) | [inline, static] |
return the unique instance of Singleton<T> class
Definition at line 32 of file Singleton.hpp.
Referenced by tuttle::host::core().
Definition at line 21 of file Singleton.hpp.
Definition at line 18 of file Singleton.hpp.
Referenced by Singleton< Core >::destroy(), and Singleton< Core >::instance().