Inheritance Graph
graph BT
WrapperFactory
click WrapperFactory "classUtil_1_1WrapperFactory"
Description
Generic factory for wrapper objects.
The factory template can be instaniated to generate different kinds of factories. The generated factory takes objects of typeInternalType, and generates a wrapper object of typeWrapperType.
Parameters
- InternalType
- Base type for all objects that are stored inside the wrapper objects of typeWrapperType
- WrapperType
- Base type for all objects that are generated by the factory
- IdentifierType
- Type of the identifier that specifies which object creator to call
- ** ObjectCreator **
- Type for callable entities that take an object of typeInternalType, and generate an object of typeWrapperType
- FallbackPolicy
- Template with a functiononUnknownType()that handles the case that the requested object type was not found
Author: Benjamin Eikel
Date: 2012-01-31
See also: Patterns from Chapter 8 in Andrei Alexandrescu: Modern C++ Design. Addison-Wesley, 2001.
Public Types
Public Attributes
Public Functions
Documentation
typedef
Util::WrapperFactory::fallbackPolicy_t
Defined in Util/Factory/WrapperFactory.h:49
variable
Util::WrapperFactory::fallbackPolicy
Defined in Util/Factory/WrapperFactory.h:50
function
Util::WrapperFactory::WrapperFactory
Defined in Util/Factory/WrapperFactory.h:51
function
Util::WrapperFactory::WrapperFactory
Defined in Util/Factory/WrapperFactory.h:53
function
Util::WrapperFactory::registerType
Defined in Util/Factory/WrapperFactory.h:56
function
Util::WrapperFactory::unregisterType
Defined in Util/Factory/WrapperFactory.h:60
function
Util::WrapperFactory::create
|
|
|
|
|
|
WrapperType create( |
const IdentifierType & |
id, |
|
const InternalType & |
object |
) |
|
|
Defined in Util/Factory/WrapperFactory.h:64