Feature/parameterizedobjectfactory
- Nov 28, 2016
-
-
Christian Engwer authored
-
Christian Engwer authored
-
Christian Engwer authored
-
Christian Engwer authored
-
- Nov 26, 2016
-
-
Christian Engwer authored
-
- Nov 25, 2016
-
-
Christian Engwer authored
- add more use cases - add a factory, which is managed by a singleton - add some predefined types to factory in a separate object to make sure that we can properly access the same factory from different compilation units - access to the factory singleton is managed by a global function
-
Christian Engwer authored
-
- Nov 16, 2015
-
-
Carsten Gräser authored
* Don't provide template parameter when registering a creator function. * Add example for factory of typed with value semantics.
-
Carsten Gräser authored
We don't need the type if we provide a creator function.
-
- Nov 13, 2015
-
-
Carsten Gräser authored
Now that Type is the actual return type, it cannot be abstract such that we can use the function signature notation again which also allows to have a default value for the Key type.
-
Carsten Gräser authored
-
Carsten Gräser authored
This is only a conveneince method. The same can be achived using a proper lambda as creator function. I'm not sure if we really want this method. Because it does require to ignore the arguments passed to the create() method which seems to be a nasty hack.
-
Carsten Gräser authored
This allow to also use types with a non-compatible constructor if a proper creator function is provided.
-
Carsten Gräser authored
Explicitly select unique_ptr or shared_ptr
-
Carsten Gräser authored
With this change one has to explicitly select unique_ptr and shared_ptr. This allows to also use the factory with types having value semantics. The result type could be, e.g. std::function<...> and the implementation types would need to have a proper signature.
-
Carsten Gräser authored
-
Carsten Gräser authored
This does not compile with gcc-4.9 and is probably invalid. This commit also removes the redundant implamentation class *Base.
-
Christian Engwer authored
-
- Nov 01, 2015
-
-
Christian Engwer authored
-
Christian Engwer authored
-
Christian Engwer authored
-
Christian Engwer authored
we use all argument types as they are. This requires us to specify any references, const qualifies, etc. explicitly, but it allows us to fully specify the interface.
-
Christian Engwer authored
the documentation already states that not brackets mean default ocnstructor, which might be the better idea. Let's discuss this.
-
Christian Engwer authored
-
Christian Engwer authored
we want to allow for constructor signatures with no, one or multiple parameters. The test now checks these different setups. Further we allow for a default parameter. Currently this is Dune::ParameterTree, but I'm not sure, whether this is a good idea or not.
-
- Oct 31, 2015
-
-
Christian Engwer authored
-
Christian Engwer authored
-