Mirror reflection library 0.5.13
|
Manufacturer is responsible for the conversion of arguments for a constructor. More...
#include <mirror/doc/concepts_fact_gen.hpp>
Public Member Functions | |
Suppliers (UnspecifiedType parent_data, ConstructionInfo construction_info) | |
Constructor. | |
void | finish (UnspecifiedType parent_data) |
Post construction finishing of the Manufacturer. | |
Product | operator() (void) |
Function call operator returning a new instance of Product . |
Manufacturer is responsible for the conversion of arguments for a constructor.
Manufacturers are used to provide parameters for constructors in a factory. Unlike the Suppliers a manufacturer creates a new instance from an external data representation or in case of elaborated Product
types it can use a factory<Manufacturer
, Suppliers, SourceTraits, ...> recursivelly to create the required argument.
void mirror::Manufacturer< Product, SourceTraits >::finish | ( | UnspecifiedType | parent_data | ) |
Post construction finishing of the Manufacturer.
Some factories may need additional post-construction finishing when the sources for all parameters are constructed, before the Manufacturer (and Suppliers) are used. Such finishing can be done here.