#include <Module.h>
Static Public Member Functions | |
static void | RegisterSingleton (string name, CSingleton *) |
register the given singleton with the given name | |
static void | UnRegisterSingleton (string name) |
unregister the singleton with the given name | |
static CSingleton * | SearchSingleton (string name) |
returns the pointer to singleton that was registered with that name | |
static void * | GetInstance () |
sub classes should implement this for easy access to self (which is a singleton) | |
Static Private Attributes | |
static std::map< string, CSingleton * > | s_registry |
private data, holding the string to singleton ptr map |
Implements a basic Singleton pattern