TexGen
|
Template used as a base class for creating singletons. More...
#include <Singleton.h>
Public Member Functions | |
CSingleton () | |
Static Public Member Functions | |
static T & | GetInstance () |
Static Protected Attributes | |
static T | m_SingleInstance |
Template used as a base class for creating singletons.
Declare a singleton class as class CMyClass : public CSingleton<CMyClass> To declare the single instance this line should be put at the top of the .cpp file template<> CMyClass CSingleton<CMyClass>::m_SingleInstance = CMyClass();
Definition at line 31 of file Singleton.h.
|
inline |
Definition at line 34 of file Singleton.h.
References TexGen::CSingleton< T >::GetInstance().
|
inlinestatic |
Definition at line 40 of file Singleton.h.
Referenced by TexGen::CSingleton< T >::CSingleton().
|
staticprotected |
Definition at line 45 of file Singleton.h.