#include <singleton_manager.h>
Static Public Member Functions | |
| static void | Add (CSingletonBase *Singleton) | 
| static const uint | NumberOfInstances () | 
Private Member Functions | |
| CSingletonManager () | |
| ~CSingletonManager () | |
Private Attributes | |
| std::stack< CSingletonBase * > | m_InstancesList | 
Definition at line 30 of file singleton_manager.h.
| CSingletonManager::CSingletonManager | ( | ) |  [inline, private] | 
        
| CSingletonManager::~CSingletonManager | ( | ) |  [inline, private] | 
        
Definition at line 37 of file singleton_manager.h.
00038 { 00039 while( !m_InstancesList.empty() ) 00040 { 00041 m_InstancesList.top()->_Kill(); 00042 m_InstancesList.pop(); 00043 } 00044 }
| static void CSingletonManager::Add | ( | CSingletonBase * | Singleton | ) |  [inline, static] | 
        
Definition at line 47 of file singleton_manager.h.
00048 { 00049 static CSingletonManager Instance; 00050 Instance.m_InstancesList.push(Singleton); 00051 }
| static const uint CSingletonManager::NumberOfInstances | ( | ) |  [inline, static] | 
        
Definition at line 53 of file singleton_manager.h.
00054 { 00055 static CSingletonManager Instance; 00056 return Instance.m_InstancesList.size(); 00057 }
std::stack<CSingletonBase *> CSingletonManager::m_InstancesList [private]           | 
        
Definition at line 33 of file singleton_manager.h.
 1.5.8