Singleton
template<class T>class Singleton
A singleton template that lets you make a singleton out of a type.
Note you can use this on multiple types simultaneously to get multiple singletons.
Template Parameters: class T
Public Interface
Public Functions:
HasInstance
inline static bool HasInstance()
Does there exist a singleton of this type already?
Returns: true iff there is a pre-existing instance of this singleton
Returns: bool
Attributes: static
, inline
Source: Schola/Source/Schola/Public/Common/CommonInterfaces.h
(line 20, column 13)
GetInstance
inline static T * GetInstance()
Get the typed singleton instance if it exists, otherwise create one.
Returns: A pointer to the singleton instance
Returns: T *
Attributes: static
, inline
Source: Schola/Source/Schola/Public/Common/CommonInterfaces.h
(line 28, column 10)
Protected Interface
Protected Members:
T * Instance
static T * Instance = = nullptr
Attributes: static
, protected
Source: Schola/Source/Schola/Public/Common/CommonInterfaces.h
(line 13, column 17)
Source: Schola/Source/Schola/Public/Common/CommonInterfaces.h
(line 10, column 1)