ECF 1.5
|
Public Member Functions | |
FunctionSet (string gettype) | |
bool | addFunction (string name) |
bool | addFunction (string name, uint numArgs) |
void | evaluate (voidP inputs, void *result, uint funcNum) |
Public Attributes | |
map< string, bool > | existFunc |
Protected Attributes | |
string | type |
Definition at line 20 of file FunctionSet.h.
cart::FunctionSet::FunctionSet | ( | string | gettype | ) |
Gettype in constructor defines data type for evaluation.
Definition at line 5 of file FunctionSet.cpp.
|
inline |
Definition at line 39 of file FunctionSet.h.
bool cart::FunctionSet::addFunction | ( | string | name | ) |
Add function defined by its name, take default number of arguments.
Definition at line 21 of file FunctionSet.cpp.
bool cart::FunctionSet::addFunction | ( | string | name, |
uint | numArgs | ||
) |
Add function defined by its name and number of arguments.
Definition at line 130 of file FunctionSet.cpp.
void cart::FunctionSet::evaluate | ( | voidP | inputs, |
void * | result, | ||
uint | funcNum | ||
) |
Evaluate function with inputs and function defined by funcNum, return result in parameter result.
Definition at line 222 of file FunctionSet.cpp.
map<string, bool> cart::FunctionSet::existFunc |
Definition at line 41 of file FunctionSet.h.
|
protected |
Definition at line 43 of file FunctionSet.h.