#include <singleton.h>
Static Public Member Functions | |
static T * | Instance () |
Protected Member Functions | |
CSingleton () | |
virtual | ~CSingleton () |
Private Member Functions | |
void | _Kill () |
Static Private Attributes | |
static T * | m_Instance = NULL |
Definition at line 28 of file singleton.h.
CSingleton< T >::CSingleton | ( | ) | [inline, protected] |
virtual CSingleton< T >::~CSingleton | ( | ) | [inline, protected, virtual] |
void CSingleton< T >::_Kill | ( | ) | [inline, private, virtual] |
Implements CSingletonBase.
Definition at line 33 of file singleton.h.
00034 { 00035 delete m_Instance; 00036 m_Instance = NULL; 00037 }
static T* CSingleton< T >::Instance | ( | ) | [inline, static] |
Definition at line 44 of file singleton.h.
00045 { 00046 if( !m_Instance ) 00047 { 00048 m_Instance = new T; 00049 CSingletonManager::Add(m_Instance); 00050 } 00051 00052 return m_Instance; 00053 }
T * CSingleton< T >::m_Instance = NULL [inline, static, private] |
Definition at line 31 of file singleton.h.