i6engine  1.0
Singleton.h File Reference
#include "boost/interprocess/sync/scoped_lock.hpp"
#include "boost/make_shared.hpp"
#include "boost/thread/mutex.hpp"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  i6e::utils::Singleton< T, Dependencies >
 Derive from this templated class to make a class a singleton. Refer to the Singleton Design Pattern if it is not clear what a singleton is. Declare the ctor private but destructor public (because of destruction is handled by shared_ptr) T = type of new Singleton class Dependencies = dependencies of this Singleton, will be initialized before this Singleton is initialized and destroyed after this one is destroyed. More...
 

Namespaces

 i6e
 
 i6e::utils