Pseudo-Singleton Template. More...
#include <SSingleton2.h>
Public Member Functions | |
SSingleton2 (void) | |
Constructor for SSingleton2. | |
virtual | ~SSingleton2 (void) |
Destructor for SSingleton2. | |
Static Public Member Functions | |
static T & | getSingleton (void) |
Gets the singleton instance. | |
static T * | getSingletonPtr (void) |
Gets the pointer to the singleton instance. | |
Pseudo-Singleton Template.
Description: Implements a pseudo-singleton pattern where the actual singleton management is handled by the SApplication class. This allows for centralized management of singleton instances.
T | Type of the class that will be made a pseudo-singleton. |
Definition at line 38 of file SSingleton2.h.
|
inline |
Constructor for SSingleton2.
Definition at line 43 of file SSingleton2.h.
|
inlinevirtual |
Destructor for SSingleton2.
Definition at line 50 of file SSingleton2.h.
|
inlinestatic |
Gets the singleton instance.
Definition at line 59 of file SSingleton2.h.
|
inlinestatic |
Gets the pointer to the singleton instance.
Definition at line 70 of file SSingleton2.h.