fw4spl
|
A base class for lazy instantiation, constructed on first demand. More...
#include <LazyInstantiator.hpp>
Public Types | |
typedef INSTANCE_TYPE | InstanceType |
typedef TAG | TagType |
typedef std::shared_ptr< InstanceType > | InstanceSptrType |
Static Public Member Functions | |
static InstanceSptrType | getInstance () |
Returns the singleton instance. This method is thread safe. | |
Static Protected Member Functions | |
static void | initInstance () |
Initializes the singleton instance. | |
static InstanceSptrType | instance () |
Initializes once and returns the instance (not thread-safe) | |
A base class for lazy instantiation, constructed on first demand.
INSTANCE_TYPE | Type of object to instantiate. |
TAG | Tag used to allow several LazyInstantiator for one INSTANCE_TYPE. |
Definition at line 28 of file LazyInstantiator.hpp.