FIFE
be64c707dea6b3250bd4355bf5c825d25920087d
|
Another Singleton. More...
#include <singleton.h>
Public Member Functions | |
DynamicSingleton () | |
virtual | ~DynamicSingleton () |
Static Public Member Functions | |
static T * | instance () |
Private Member Functions | |
DynamicSingleton (const DynamicSingleton< T > &) | |
DynamicSingleton< T & > | operator= (const DynamicSingleton< T > &) |
Static Private Attributes | |
static T * | m_instance = 0 |
Another Singleton.
This implementations needs to be created and destroyed explicitly. That way the order of construction and destruction is well defined, so we don't get those nasty static initialization/destruction order problems.
Engine will create all standard FIFE Singletons when created (just call Engine::instance()) and destroy them on exit.
Maybe we'll change this one day to use one of those funny NiftyCounter implementations.
Definition at line 82 of file singleton.h.
|
inline |
Definition at line 89 of file singleton.h.
|
inlinevirtual |
Definition at line 94 of file singleton.h.
|
inlineprivate |
Definition at line 101 of file singleton.h.
|
inlinestatic |
Definition at line 84 of file singleton.h.
|
inlineprivate |
Definition at line 102 of file singleton.h.
|
staticprivate |
Definition at line 99 of file singleton.h.