| Line | Branch | Decision | Call | Exec | Source |
|---|---|---|---|---|---|
| 1 | #ifndef CHRYSALIS_PARAMETERARGUMENT_H | ||||
| 2 | #define CHRYSALIS_PARAMETERARGUMENT_H | ||||
| 3 | |||||
| 4 | #include <boost/serialization/export.hpp> | ||||
| 5 | |||||
| 6 | #include "Parameter.h" | ||||
| 7 | #include "BaseCalculatedArgument.h" | ||||
| 8 | |||||
| 9 | /** @defgroup Arguments Arguments | ||||
| 10 | * @{ | ||||
| 11 | */ | ||||
| 12 | namespace Chrysalis { | ||||
| 13 | class ParameterArgument: public BaseCalculatedArgument<double> { | ||||
| 14 | PROVIDE_SERIALIZATION_ACCESS(ParameterArgument) | ||||
| 15 | public: | ||||
| 16 | explicit ParameterArgument(Parameter* parameter); | ||||
| 17 | protected: | ||||
| 18 | std::expected<double, Error> calculate() const override; | ||||
| 19 | private: | ||||
| 20 | Parameter* parameter_; | ||||
| 21 | }; | ||||
| 22 | 432 | SERIALIZE_DERIVED_CONSTRUCTION(ParameterArgument, BaseCalculatedArgument<double>, parameter_) | |||
| 23 | } | ||||
| 24 | /**@}*/ | ||||
| 25 | |||||
| 26 | #endif //CHRYSALIS_PARAMETERARGUMENT_H | ||||
| 27 |