10 #ifndef _STRUS_SCALAR_FUNCTION_INSTANCE_INTERFACE_HPP_INCLUDED
11 #define _STRUS_SCALAR_FUNCTION_INSTANCE_INTERFACE_HPP_INCLUDED
17 class ScalarFunctionContextInterface;
35 virtual double call(
const double* args,
unsigned int nofargs)
const=0;
38 virtual std::string
tostring()
const=0;
virtual void setVariableValue(const std::string &name, double value)=0
Initialize a variable value.
virtual std::string tostring() const =0
Return the representation (VM code or whatever it is) of the function with variables substituted as s...
virtual double call(const double *args, unsigned int nofargs) const =0
Execute the function.
Interface for parameterizing a scalar function.
Definition: scalarFunctionInstanceInterface.hpp:20
virtual ~ScalarFunctionInstanceInterface()
Destructor.
Definition: scalarFunctionInstanceInterface.hpp:24