Loading...
Searching...
No Matches
Dune::ParameterizedObjectFactory< Signature, KeyT > Class Template Reference

A factory class for parameterized objects. More...

Inheritance diagram for Dune::ParameterizedObjectFactory< Signature, KeyT >:

## Detailed Description

template<typename Signature, typename KeyT = std::string>
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 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.

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:

- parameterizedobject.hh