Dune Core Modules (2.6.0)
Dune::ParameterizedObjectFactory< Signature, KeyT > Class Template Reference
A factory class for parameterized objects. More...
Detailed Description
template<typename Signature, typename KeyT = std::string>
class Dune::ParameterizedObjectFactory< Signature, KeyT >
class Dune::ParameterizedObjectFactory< Signature, KeyT >
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 constrcutor parameters.
Each type constructed by this factory is identified by a different key. This class allows for easy registration of type with new keys.
- Template Parameters
-
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].
The documentation for this class was generated from the following file:
- dune/common/parameterizedobject.hh
|
Legal Statements / Impressum |
Hosted by TU Dresden |
generated with Hugo v0.111.3
(Dec 26, 23:30, 2024)