Shaka Player Embedded
|
#include <pseudo_singleton.h>
Classes | |
struct | UnsetForTesting |
Public Member Functions | |
PseudoSingleton () | |
~PseudoSingleton () | |
Static Public Member Functions | |
static T * | Instance () |
static T * | InstanceOrNull () |
A base class for types that should only have one instance at a time. This defines a static method to get the instance that will be inherited to the type. This type is fully thread-safe and can be used on any thread.
The type argument should be the type itself. For example:
class Foo : public PseudoSingleton<Foo> {};
Definition at line 37 of file pseudo_singleton.h.
|
inline |
Definition at line 61 of file pseudo_singleton.h.
|
inline |
Definition at line 67 of file pseudo_singleton.h.
|
inlinestatic |
Definition at line 73 of file pseudo_singleton.h.
|
inlinestatic |
Definition at line 79 of file pseudo_singleton.h.