common/singleton.hpp File Reference


Detailed Description

Factory for creating Singleton instances.

This configuration header just pulls in some other implementation headers in the right order. The basic class template for creating singletons resides in singletonfactory.hpp, besides we need policy classes defining how to create the singleton objects, how to manage lifecycle and multithreading. Finally, we want to preconfigure singleton factories for some important facilities; e.g. sometimes we want to include a hook for injecting Test Mock instances.

You'll find the default Policies in singletonfactory.hpp and the default definition of type lumiera::singleton in singletonpreconfigure.hpp

See also:
SingletonFactory

singleton::StaticCreate

singleton::AutoDestroy

singletontest.hpp

singletontestmocktest.hpp

Definition in file singleton.hpp.

#include "common/singletonpolicies.hpp"
#include "common/singletonfactory.hpp"
#include "common/singletonpreconfigure.hpp"

Include dependency graph for singleton.hpp:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


Generated on Fri Nov 7 22:15:12 2008 for Lumiera by  doxygen 1.5.6