expression(s) evaluation based on a string.
More...
#include <eval.h>
List of all members.
|
Public Member Functions |
|
void | SetEvalString (const wxString &toEval) |
|
bool | GetSymbol (const wxString &envname, TYPENUMBER *envValue) |
|
void | ClearAllVars () |
|
bool | ClearVar (const wxString &name) |
|
int | Evaluate (TYPENUMBER *result, int *a) |
|
void | Parse () |
|
bool | GetValue (const wxString &name, TYPENUMBER *value) |
|
bool | SetValue (const wxString &name, TYPENUMBER value) |
Public Attributes |
|
a2dFunctionList | m_functions |
|
a2dVariableList | m_vars |
|
a2dVariableList | m_const |
Protected Member Functions |
|
int | Level1 (TYPENUMBER *r) |
|
void | Level2 (TYPENUMBER *r) |
|
void | Level3 (TYPENUMBER *r) |
|
void | Level4 (TYPENUMBER *r) |
|
void | Level5 (TYPENUMBER *r) |
|
void | Level6 (TYPENUMBER *r) |
Detailed Description
expression(s) evaluation based on a string.
The a2dEval module provides a class that allows you to incorporate mathematical expression evaluation into your programs, that can be changed at run time. For example, using the class you can evaluate such expressions as:
1+1
10 * (x=5) <== Assigns 5 to X first!
((1/3) * sin(45))^2
X=50
Y=100
z=hypot(x,y)
You can extend Constants and Functions that can be used.
Definition at line 142 of file eval.h.
The documentation for this class was generated from the following files:
a2dEval Class Reference -- Tue Aug 31 18:26:36 2010 -- 31 Aug 2010 -- 1.5.5 -- wxArt2D -- . --