#include <LDK/Singletons.h>
Inheritance diagram for LDK::Singleton< T, StoragePolicy >:
Public Types | |
typedef StoragePolicy< T > | SP |
typedef SP::Type | Type |
typedef SP::PointerType | PointerType |
typedef SP::ReferenceType | ReferenceType |
Static Public Member Functions | |
static void | initialise () |
static ReferenceType | instance () |
Protected Member Functions | |
Singleton () | |
Singleton (const Singleton &) | |
~Singleton () | |
void | operator= (const Singleton &) |
The instance a singleton encapsulates is obtained by a call to the static instance method, which returns a reference to the instance. References are used rather than pointers to prevent delete being called on a singleton managed instance.
Definition at line 231 of file Singletons.h.