Inherit from this class to add singleton behaviour to your class.
Name | Description |
---|---|
tClass * m_Singleton = NULL | Pointer to the singleton instance or NULL if not started. |
Name | Description |
---|---|
~GeoSingleton() | Destructor clears singleton pointer. |
GeoSingleton() | Constructor initialises singleton pointer. |
Get() | Returns a pointer to the singleton instance. |
IsAvailable() | Returns true if the singleton is available. |
Start() | Setup the singleton instance. |
Stop() | Release the singleton instance. |
protected: ~GeoSingleton()
Destructor clears singleton pointer.
protected: GeoSingleton()
Constructor initialises singleton pointer.
public: tClass * Get()
Returns a pointer to the singleton instance.
public: bool IsAvailable()
Returns true if the singleton is available.
public: bool Start()
Setup the singleton instance.
public: void Stop()
Release the singleton instance.