#include <Factory.h>
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
Definition: SmallObj.h:74
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: