|
FIFE
2008.0
|
#include <singleton.h>


Additional Inherited Members | |
Public Member Functions inherited from FIFE::FifeClass | |
| fifeid_t | getFifeId () |
| virtual void | addRef () |
| virtual void | decRef () |
| virtual unsigned int | getRefCount () |
Public Member Functions inherited from FIFE::IReferenceCounted | |
| virtual void | addRef ()=0 |
| virtual void | decRef ()=0 |
| virtual unsigned int | getRefCount ()=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.