NGL
6.5
The NCCA Graphics Library
|
Singleton template added to NGL framework 20/04/10 by jmacey. More...
#include <Singleton.h>
Public Member Functions | |
Singleton (const Singleton &)=delete | |
Singleton & | operator= (const Singleton &)=delete |
Static Public Member Functions | |
static T * | instance () |
Get the instance. More... | |
Protected Member Functions | |
Singleton () | |
Constructor. More... | |
virtual | ~Singleton () |
Destructor. More... | |
Static Protected Member Functions | |
static void | killSingleton () |
Static Protected Attributes | |
static T * | s_instance = 0 |
unique instance of the singleton More... | |
Singleton template added to NGL framework 20/04/10 by jmacey.
Definition at line 40 of file Singleton.h.
|
delete |
|
protected |
Constructor.
Constructor ----------------------------------------------------------------------------------------------------------—.
Definition at line 75 of file Singleton.h.
|
protectedvirtual |
Destructor.
Destructor ------------------------------------------------------------------------------------------------------------—.
Definition at line 82 of file Singleton.h.
|
static |
Get the instance.
Get instance -----------------------------------------------------------------------------------------------------------—.
Definition at line 88 of file Singleton.h.
|
inlinestaticprotected |
Definition at line 67 of file Singleton.h.
|
delete |
|
staticprotected |
unique instance of the singleton
Definition at line 66 of file Singleton.h.