DeSiGNAR
0.5a
Data Structures General Library
|
#include <singleton.H>
Public Member Functions | |
virtual | ~Singleton () |
Static Public Member Functions | |
static T * | get_ptr_instance () |
static T & | get_instance () |
Protected Member Functions | |
Singleton () | |
Singleton (const Singleton< T > &)=delete | |
Singleton & | operator= (const Singleton< T > &)=delete |
Generic Singleton.
This class was designed in order to being reused for any class which requires only one instance.
T | Base class. |
Usage example:
|
inlineprotected |
|
protecteddelete |
|
inlinevirtual |
|
inlinestatic |
Get a reference to instance.
|
inlinestatic |
Get a pointer to instance.
|
protecteddelete |