#include <ISingleton.h>
Public Member Functions | |
ISingleton (void) | |
Constructor. | |
~ISingleton (void) | |
Destructor. | |
Static Public Member Functions | |
static T & | getSingleton (void) |
This method just returns the internal member by reference. | |
static T * | getSingletonPtr (void) |
This method just returns the internal member by a pointer. | |
Static Protected Attributes | |
static T * | ms_Singleton |
The static member object. |
The code in this file is taken from article 1.3 in the the book: Game Programming Gems from Charles River Media with the copyright notice going to Scott Bilas.
|
This method just returns the internal member by reference.
Reimplemented in peon::AudioEngine, peon::EngineCore, peon::FileLogger, peon::InputEngine, and peon::SceneRoot. |
|
This method just returns the internal member by a pointer.
Reimplemented in peon::AudioEngine, peon::EngineCore, peon::FileLogger, peon::InputEngine, and peon::SceneRoot. |