#include <parsedFunction.h>
Inherits std::unary_function<arg, double>.
Public Member Functions |
|
|
Constructors and Destructors
|
|
| ParsedFunction () | |
| Default constructor. |
|
| ParsedFunction (const String &expression) | |
| Detailed constructor. |
|
| ParsedFunction (const ParsedFunction &func) | |
| Copy constructor. |
|
| ~ParsedFunction () | |
| Destructor. |
|
|
Accessors
|
|
| double | operator() (arg p) throw (Exception::ParseError) |
Evaluate the function at point
. |
|
|
Parsing
|
|
| void | initTable () |
| This function initializes the
function table and the constant table of our
parser. |
|
Public Attributes |
|
| StringHashMap< double * > | constants_ |
| The table of constants. |
|
| StringHashMap< 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.
1.5.8