xmscore
1.0
|
Base class for classes that follow the singleton pattern. More...
#include <Singleton.h>
Static Public Member Functions | |
static T & | Instance (bool a_delete=false, T *a_new=NULL) |
Get the instance of the singleton. More... | |
static void | Delete () |
Delete the singleton instance. | |
Base class for classes that follow the singleton pattern.
Definition at line 26 of file Singleton.h.
|
inlinestatic |
Get the instance of the singleton.
a_delete | If true delete the instance and recreate next time. RETURNS AN INVALID INSTANCE. |
a_new | A new pointer to use as the instance when called the first time or just after the instance has been deleted. |
Definition at line 37 of file Singleton.h.
Referenced by xms::Singleton< XmLog >::Delete(), and xms::SharedSingleton< T >::Delete().