Loki  0.1.7
 All Classes Namespaces Files Functions Variables Typedefs Friends Macros Modules
Loki::Factory< AbstractProduct, IdentifierType, CreatorParmTList, FactoryErrorPolicy > Class Template Reference

#include <Factory.h>

Inherits FactoryErrorPolicy< IdentifierType, AbstractProduct >.

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: