strus  0.17
Public Member Functions | List of all members
strus::ScalarFunctionInstanceInterface Class Referenceabstract

Interface for parameterizing a scalar function. More...

#include <scalarFunctionInstanceInterface.hpp>

Public Member Functions

virtual ~ScalarFunctionInstanceInterface ()
 Destructor. More...
 
virtual void setVariableValue (const std::string &name, double value)=0
 Initialize a variable value. More...
 
virtual double call (const double *args, unsigned int nofargs) const =0
 Execute the function. More...
 
virtual std::string tostring () const =0
 Return the representation (VM code or whatever it is) of the function with variables substituted as string. More...
 

Detailed Description

Interface for parameterizing a scalar function.

Constructor & Destructor Documentation

virtual strus::ScalarFunctionInstanceInterface::~ScalarFunctionInstanceInterface ( )
inlinevirtual

Destructor.

Member Function Documentation

virtual double strus::ScalarFunctionInstanceInterface::call ( const double *  args,
unsigned int  nofargs 
) const
pure virtual

Execute the function.

Parameters
[in]argsarray of arguments
[in]nofargsnumber of elements in args
virtual void strus::ScalarFunctionInstanceInterface::setVariableValue ( const std::string &  name,
double  value 
)
pure virtual

Initialize a variable value.

Parameters
[in]namevariable name
[in]valuevalue of the variable to set
Remarks
Reports an error, if the domain does not match
virtual std::string strus::ScalarFunctionInstanceInterface::tostring ( ) const
pure virtual

Return the representation (VM code or whatever it is) of the function with variables substituted as string.


The documentation for this class was generated from the following file: