FIFE  2008.0
FIFE::DynamicSingleton< T > Class Template Reference

#include <singleton.h>

Inheritance diagram for FIFE::DynamicSingleton< T >:
Inheritance graph
Collaboration diagram for FIFE::DynamicSingleton< T >:
Collaboration graph

Detailed Description

template<typename T>
class FIFE::DynamicSingleton< T >

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.

See also
StaticSingleton
Engine

Definition at line 82 of file singleton.h.


The documentation for this class was generated from the following file: