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
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"


Go to the source code of this file.
1.5.6