#ifndef CONSTANT2DFUNCTION #define CONSTANT2DFUNCTION 1 /** * * constant 2d Function * * */ # include "FML/Function.h" # include class Constant2DFunction : public Anaphe::FML::Function { public: Constant2DFunction(); // methods need to be implemented by the user double value(const std::vector& x) const; //const std::vector& gradient(const std::vector& x) const; //const std::vector& parameterGradient(const std::vector& x) const; /// runtime metatype identifier: " static std::string functionTypename(); double p0() const; double area() const; private: mutable bool m_first; }; inline double Constant2DFunction::p0() const { return parameters()[0]; } # endif