This is a convenient base class intended to be used with classes that need to be singletons. More...
#include <singleton.h>
Public Member Functions | |
Singleton () | |
Class constructor. | |
~Singleton () | |
Class destructor. | |
Static Public Member Functions | |
static Type * | GetSingletonPtr () |
Fetches a pointer to the singleton. More... | |
static bool | SingletonValid () |
Checks to see if the singleton pointer is valid. More... | |
Protected Member Functions | |
template<> | |
Graphics::MeshManager * | SingletonPtr |
template<> | |
Input::InputManager * | SingletonPtr |
template<> | |
Audio::AudioManager * | SingletonPtr |
template<> | |
UI::UIManager * | SingletonPtr |
template<> | |
Graphics::GraphicsManager * | SingletonPtr |
template<> | |
Entresol * | SingletonPtr |
template<> | |
Physics::CollisionShapeManager * | SingletonPtr |
template<> | |
ResourceManager * | SingletonPtr |
template<> | |
EventManager * | SingletonPtr |
Static Protected Attributes | |
static Type * | SingletonPtr |
This is a convenient base class intended to be used with classes that need to be singletons.
This is based on the Ogre Singleton class.
Definition at line 62 of file singleton.h.
|
inlinestatic |
Fetches a pointer to the singleton.
Definition at line 91 of file singleton.h.
|
inlinestatic |
Checks to see if the singleton pointer is valid.
Definition at line 101 of file singleton.h.