14#include "MEAL/Evaluable.h"
22 template<
typename Base>
29 typedef typename Base::Result
Result;
35 this->copy_parameter_policy (
model);
36 this->copy_evaluation_policy (
model);
44 throw Error (InvalidState,
45 "Wrap<" + std::string(Base::Name) +
">::calculate",
46 "not implemented - please use wrap method");
Template base class of functions with an evaluate method.
Definition Evaluable.h:37
Wrap another function.
Definition Wrap.h:24
void calculate(Result &result, std::vector< Result > *)
The calculate method should never be called.
Definition Wrap.h:42
Base::Result Result
The return type of the evaluate method.
Definition Wrap.h:29
Reference::To< Evaluable< Result > > model
The wrapped function.
Definition Wrap.h:50
void wrap(Evaluable< Result > *_model)
Set the function to wrap.
Definition Wrap.h:32
Namespace in which all modeling and calibration related code is declared.
Definition ExampleComplex2.h:16