Page MenuHomec4science

AbstractFunction.hpp
No OneTemporary

File Metadata

Created
Sun, Feb 23, 04:25

AbstractFunction.hpp

//
// Created by Pauline Ollitrault on 28.11.16.
//
#ifndef NUMINT_FUNCTIONMANAGER_HPP
#define NUMINT_FUNCTIONMANAGER_HPP
#include <string>
#include <cassert>
#include "vectorFunctions.hpp"
class AbstractFunction {
/**
* @class AbstractFunction
* @brief Mother class for all function types.
*/
public:
/**Constructors*/
AbstractFunction();
/**Destructor*/
virtual ~AbstractFunction();
/**Setters*/
void SetExactValue(const double exact_value);
virtual void SetFunction(const std::string function); //Initializes the function
/**Getters*/
double GetExactValue() const;
private:
/** If the exact value is known, it can be stored in this variable.
* Can be useful e.g. for error computations */
double m_exact_value;
};
#endif //NUMINT_FUNCTIONMANAGER_HPP

Event Timeline