API Guides > ConceptRT 3.x

Detailed Description

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

Macro Definition Documentation

#define SINGLETON_CONSTRUCTOR (   classType_)

Helper macro to define the mandatory constructor of a singleton.

Parameters
classType_The current class type.

SINGLETON_CONSTRUCTOR(Example) {} or Either SINGLETON_CONSTRUCTOR(Example); with Example::Example() { code }

Context of use : Singleton class declaration.