![]() |
Gray C++ Libraries
0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
|
#include <cSingleton.h>
Static Public Member Functions | |
static bool | isSingleCreated () noexcept |
static TYPE * | get_SingleU () noexcept |
static TYPE * | get_Single () |
template<class TYPE2 > | |
static TYPE2 *__stdcall | get_SingleCast () |
static TYPE & | I () noexcept |
Protected Member Functions | |
cSingletonStatic (TYPE *pObject) noexcept | |
virtual | ~cSingletonStatic () noexcept |
Static Protected Attributes | |
static TYPE * | sm_pThe = nullptr |
pointer to the one and only object of this TYPE. ASSUME automatically init to = nullptr. More... | |
base class for a type that we want to make sure only one of these can exist at a time.
|
inlineprotectednoexcept |
the singleton must be constructed with a reference to the controlled object typically this == pObject == sm_pThe
|
inlineprotectedvirtualnoexcept |
the singleton accessor
|
inlinestatic |
This is a complex or abstract or assumed static type that we cannot just create automatically on first usage.
|
inlinestatic |
|
inlinestaticnoexcept |
|
inlinestaticnoexcept |
The singleton by reference.
|
inlinestaticnoexcept |
|
staticprotected |
pointer to the one and only object of this TYPE. ASSUME automatically init to = nullptr.