LifeV
|
implement the FactorySingleton pattern More...
#include <FactorySingleton.hpp>
Private Member Functions | |
FactorySingleton () | |
Static Private Attributes | |
static instance_Type | S_instance |
static bool | S_destroyed |
Public typedefs | |
typedef SingletonType | Singleton_Type |
typedef FactoryPolicyLifeTimeDefault< Singleton_Type > | lifetimeFactoryPolicy_Type |
typedef FactoryPolicyCreationUsingNew< Singleton_Type > | creationFactoryPolicy_Type |
Public static methods | |
static Singleton_Type & | instance () |
return the instance of the FactorySingleton More... | |
Private typedefs | |
typedef Singleton_Type * | instance_Type |
Private static methods | |
static void | makeInstance () |
static void | destroyFactorySingleton () |
FactorySingleton::makeInstance (helper for Instance) More... | |
implement the FactorySingleton pattern
A FactorySingleton pattern implementation using the ideas from Alexandrescu's book "modern C++ design" http://www.moderncppdesign.com/
Definition at line 59 of file FactorySingleton.hpp.
typedef SingletonType Singleton_Type |
Definition at line 64 of file FactorySingleton.hpp.
Definition at line 65 of file FactorySingleton.hpp.
Definition at line 66 of file FactorySingleton.hpp.
|
private |
Definition at line 79 of file FactorySingleton.hpp.
|
private |
|
inlinestatic |
return the instance of the FactorySingleton
Definition at line 110 of file FactorySingleton.hpp.
|
staticprivate |
|
staticprivate |
FactorySingleton::makeInstance (helper for Instance)
Definition at line 135 of file FactorySingleton.hpp.
|
staticprivate |
Definition at line 95 of file FactorySingleton.hpp.
|
staticprivate |
Definition at line 96 of file FactorySingleton.hpp.