Loki  0.1.7
Loki::Factory< AbstractProduct, IdentifierType, CreatorParmTList, FactoryErrorPolicy > Class Template Reference

#include <Factory.h>

Inheritance diagram for Loki::Factory< AbstractProduct, IdentifierType, CreatorParmTList, FactoryErrorPolicy >:
Collaboration diagram for Loki::Factory< AbstractProduct, IdentifierType, CreatorParmTList, FactoryErrorPolicy >:

Detailed Description

template<class AbstractProduct, typename IdentifierType, typename CreatorParmTList = NullType, template< typename, class > class FactoryErrorPolicy = DefaultFactoryError>
class Loki::Factory< AbstractProduct, IdentifierType, CreatorParmTList, FactoryErrorPolicy >

Implements a generic object factory.

Create functions can have up to 15 parameters.

Singleton lifetime when used with Loki::SingletonHolder
Because Factory uses internally Functors which inherits from SmallObject you must use the singleton lifetime Alternatively you could suppress for Functor the inheritance from SmallObject by defining the macro:
LOKI_FUNCTOR_IS_NOT_A_SMALLOBJECT

The documentation for this class was generated from the following file:
Loki::LongevityLifetime::DieAsSmallObjectChild
Definition: SmallObj.h:74