wxArt2D
Public Member Functions | Public Attributes | Protected Member Functions | List of all members

expression(s) evaluation based on a string. More...

#include <eval.h>

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 143 of file eval.h.


The documentation for this class was generated from the following files:
a2dEval Class Reference -- Sun Oct 12 2014 17:04:38 -- Sun Oct 12 2014 -- 1.8.5 -- wxArt2D -- . -- Main Page Reference Documentation