ps
Class Singleton
in Singleton.h
- Direct Known Subclasses:
- CMaterialManager, CTextureManager, CGUI, CSessionManager, CBuildingPlacer, CConfigDB, CGameAttributes, CMouseoverEntities, CProfileManager, CProfileViewer, CSelectedEntities, CRenderer, CGameEvents, ScriptingHost, CEntityTemplateCollection, CFormationCollection, CFormationManager, CPathfindEngine, CScheduler, CTechnologyCollection, CTriggerManager
- template < typename T > class Singleton
=========================================================================
File : Singleton.h
Project : 0 A.D.
Description : template base class for Singletons
=========================================================================
ms_singleton
private static T* ms_singleton;
Singleton
public Singleton();
~Singleton
public ~Singleton();
GetSingleton
public static T& GetSingleton();
GetSingletonPtr
public static T* GetSingletonPtr();
IsInitialised
public static bool IsInitialised();