// Author: Andreas F. Borchert
// Contributors: {} // Description: abstract class for monadic functions #ifndef FUNCTION_HPP #define FUNCTION_HPP #include <string> class Function { public: virtual ~Function() {}; virtual const std::string& get_name() const = 0; virtual double execute(double x) const = 0; }; // class Function #endif |