#include <parsedFunction.h>
Public Member Functions | |
Constructors and Destructors | |
ParsedFunction () throw () | |
Default constructor. | |
ParsedFunction (const String &expression) throw () | |
Detailed constructor. | |
ParsedFunction (const ParsedFunction &func) throw () | |
Copy constructor. | |
~ParsedFunction () throw () | |
Destructor. | |
Accessors | |
double | operator() (arg p) throw (Exception::ParseError) |
Evaluate the function at point . | |
Parsing | |
void | initTable () throw () |
This function initializes the function table and the constant table of our parser. | |
Public Attributes | |
HashMap< String, double * > | constants_ |
The table of constants. | |
HashMap< String, double(*)(double)> | functions_ |
The table of functions. | |
Protected Attributes | |
String | expression_ |
This function type contains a double - valued function string like . When the operator () is called, is replaced with the argument of the operator call and the function string is parsed and evaluated.
|
This function initializes the function table and the constant table of our parser.
|
|
Evaluate the function at point .
|