Singleton Template. More...
#include <SSingleton.h>
Public Member Functions | |
SSingleton (void) | |
Constructor for SSingleton. | |
virtual | ~SSingleton (void) |
Destructor for SSingleton. | |
Static Public Member Functions | |
static T & | getSingleton (void) |
Gets the singleton instance. | |
static T * | getSingletonPtr (void) |
Gets the pointer to the singleton instance. | |
Static Protected Attributes | |
static T * | ms_Singleton |
Static pointer to the singleton instance. | |
Singleton Template.
Description: Implements the Singleton design pattern, ensuring that a class has only one instance and providing a global point of access to it.
T | Type of the class that will be made a singleton. |
Definition at line 30 of file SSingleton.h.
|
inline |
Constructor for SSingleton.
Definition at line 42 of file SSingleton.h.
|
inlinevirtual |
Destructor for SSingleton.
Definition at line 52 of file SSingleton.h.
|
inlinestatic |
Gets the singleton instance.
Definition at line 63 of file SSingleton.h.
|
inlinestatic |
Gets the pointer to the singleton instance.
Definition at line 73 of file SSingleton.h.
|
staticprotected |
Static pointer to the singleton instance.
Definition at line 35 of file SSingleton.h.