Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

template<typename>
class Geo::GeoSingleton

Inherit from this class to add singleton behaviour to your class.

Variables

NameDescription
tClass * m_Singleton = NULL

Pointer to the singleton instance or NULL if not started.

Functions

NameDescription
~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.


Anchor
a82ee7edacbf148ad1a6036575dc756a2
a82ee7edacbf148ad1a6036575dc756a2

Geo::GeoSingleton< tClass >::~GeoSingleton

...

protected: ~GeoSingleton()

...

Destructor clears singleton pointer.


Anchor
a6336f7cf559d808beac7f44144741ce6
a6336f7cf559d808beac7f44144741ce6

Geo::GeoSingleton< tClass >::GeoSingleton

...

protected: GeoSingleton()

...

Constructor initialises singleton pointer.


Anchor
aabdf9e4e0dd8c2c8e1f1dc3ebe532f11
aabdf9e4e0dd8c2c8e1f1dc3ebe532f11

tClass * Geo::GeoSingleton< tClass >::Get

...

public: tClass * Get()

...

Returns a pointer to the singleton instance.


Anchor
a8544559aa1f9d376753d1aef8baf1de6
a8544559aa1f9d376753d1aef8baf1de6

bool Geo::GeoSingleton< tClass >::IsAvailable

...

public: bool IsAvailable()

...

Returns true if the singleton is available.


Anchor
a16b72c3f5156496b63c45efc7cf6d211
a16b72c3f5156496b63c45efc7cf6d211

bool Geo::GeoSingleton< tClass >::Start

...

public: bool Start()

...

Setup the singleton instance.


Anchor
acfd9a98496840f08a3c50431cb54f805
acfd9a98496840f08a3c50431cb54f805

void Geo::GeoSingleton< tClass >::Stop

...

public: void Stop()

...

Release the singleton instance.