Interface for a scalar function type.
More...
#include <scalarFunctionInterface.hpp>
Interface for a scalar function type.
- Note
- A scalar function is an N-ary function with a fixed number of arguments to a single value (http://mathworld.wolfram.com/ScalarFunction.html). For strus we reduce the value domain to double precision floating point values.
virtual strus::ScalarFunctionInterface::~ScalarFunctionInterface |
( |
| ) |
|
|
inlinevirtual |
Creates an instance of the function.
- Returns
- the created scalar function instance
virtual unsigned int strus::ScalarFunctionInterface::getNofArguments |
( |
| ) |
const |
|
pure virtual |
Get the number of arguments of this function.
- Returns
- the number of arguments
virtual std::vector<std::string> strus::ScalarFunctionInterface::getVariables |
( |
| ) |
const |
|
pure virtual |
Get the list of variables the function is parameterized with.
- Returns
- list of variable names
virtual void strus::ScalarFunctionInterface::setDefaultVariableValue |
( |
const std::string & |
name, |
|
|
double |
value |
|
) |
| |
|
pure virtual |
Set a variable value default.
- Parameters
-
[in] | name | variable name |
[in] | value | default value of the variable to set |
virtual std::string strus::ScalarFunctionInterface::tostring |
( |
| ) |
const |
|
pure virtual |
Return the representation (VM code or whatever it is) of the function as string.
The documentation for this class was generated from the following file: