Classes | |
class | Singleton< T > |
Singleton is a pattern that allows only one instance of a class. More... | |
Macros | |
#define | SINGLETON_CONSTRUCTOR(classType_) |
Helper macro to define the mandatory constructor of a singleton. More... | |
#define SINGLETON_CONSTRUCTOR | ( | classType_ | ) |
Helper macro to define the mandatory constructor of a singleton.
classType_ | The current class type. |
SINGLETON_CONSTRUCTOR(Example) {} or Either SINGLETON_CONSTRUCTOR(Example); with Example::Example() { code }
Context of use : Singleton class declaration.