dune-common 2.9.0
|
A factory class for parameterized objects. More...
A factory class for parameterized objects.
It allows the construction of objects adhering to a certain interface that might be constructed quite differently for one another.
The Signature parameter defined the "virtual" constructor signature in the form of Interface(Args...), where Interface is the type of the (abstract) interface class and Args... is the set of constructor parameters.
Each type constructed by this factory is identified by a different key. This class allows for easy registration of type with new keys.
Signature | Signature of the "virtual" constructor call in the form for Interface(Args...). For default constructors one can omit the ()-brackets. |
KeyT | The type of the objects that are used as keys in the lookup [DEFAULT: std::string]. |