Singleton is a pattern that allows only one instance of a class. More...
Singleton is a pattern that allows only one instance of a class.
Example :
Static Public Member Functions | |
static T * | GetInstancePointer () |
Gets the instance pointer. More... | |
static T & | GetInstance () |
Gets the instance. More... | |
static void | DeleteInstance (bool allowNewCreation=false) |
Deletes the instance. More... | |
static bool | IsCreated () |
Query if the singleton instance has already been created. More... | |
|
static |
Deletes the instance.
allowNewCreation | (optional) allow new creation after deletion is explicitly called. Default = false. |
|
static |
Gets the instance.
|
static |
Gets the instance pointer.
|
static |
Query if the singleton instance has already been created.