Kinect Scol plugin
|
Create Singleton type. . More...
#include <Singleton.h>
Public Member Functions | |
Singleton () | |
~Singleton () | |
Static Public Member Functions | |
static DERIVATED_CLASS & | GetSingleton () |
static DERIVATED_CLASS * | GetSingletonPtr () |
Protected Member Functions | |
template<> | |
DeviceManager * | instance |
Static Protected Attributes | |
static DERIVATED_CLASS * | instance |
Create Singleton type. .
A singleton class is a class that could have only one instance. Furthemore, the instance of the child class can be accessed from everywhere in the code, due to the statics functions GetSingleton and GetSingletonPtr.
Definition at line 41 of file Singleton.h.
Constructor.
Definition at line 72 of file Singleton.h.
Destructor.
Definition at line 83 of file Singleton.h.
|
static |
Get the singleton instance.
Definition at line 89 of file Singleton.h.
|
static |
Get the pointer of the singleton instance.
Definition at line 95 of file Singleton.h.