|
| ParserInt () |
|
virtual void | InitFun () |
|
virtual void | InitOprt () |
|
virtual void | InitConst () |
|
virtual void | InitCharSets () |
|
| ParserBase () |
| Constructor. More...
|
|
| ParserBase (const ParserBase &a_Parser) |
|
ParserBase & | operator= (const ParserBase &a_Parser) |
| Assignement operator. More...
|
|
virtual | ~ParserBase () |
|
value_type | Eval () const |
| Calculate the result. More...
|
|
void | SetExpr (const string_type &a_sExpr) |
| Set the formula. More...
|
|
void | SetVarFactory (facfun_type a_pFactory, void *pUserData=NULL) |
|
void | EnableOptimizer (bool a_bIsOn=true) |
| Enable or disable the formula optimization feature. More...
|
|
void | EnableByteCode (bool a_bIsOn=true) |
| Enable or disable parsing from Bytecode. More...
|
|
void | EnableBuiltInOprt (bool a_bIsOn=true) |
| Enable or disable the built in binary operators. More...
|
|
bool | HasBuiltInOprt () const |
| Query status of built in variables. More...
|
|
void | AddValIdent (identfun_type a_pCallback) |
|
void | DefineOprt (const string_type &a_strName, fun_type2 a_pFun, unsigned a_iPri=0, bool a_bAllowOpt=false) |
| Define a binary operator. More...
|
|
void | DefineConst (const string_type &a_sName, value_type a_fVal) |
| Add a user defined constant. More...
|
|
void | DefineStrConst (const string_type &a_sName, const string_type &a_strVal) |
| Define a new string constant. More...
|
|
void | DefineVar (const string_type &a_sName, value_type *a_fVar) |
| Add a user defined variable. More...
|
|
void | DefinePostfixOprt (const string_type &a_strFun, fun_type1 a_pOprt, bool a_bAllowOpt=true) |
| Add a user defined operator. More...
|
|
void | DefineInfixOprt (const string_type &a_strName, fun_type1 a_pOprt, int a_iPrec=prINFIX, bool a_bAllowOpt=true) |
| Add a user defined operator. More...
|
|
void | ClearVar () |
| Clear all user defined variables. More...
|
|
void | ClearFun () |
| Clear all functions. More...
|
|
void | ClearConst () |
| Clear all user defined constants. More...
|
|
void | ClearInfixOprt () |
| Clear the user defined Prefix operators. More...
|
|
void | ClearPostfixOprt () |
| Clear all user defined postfix operators. More...
|
|
void | ClearOprt () |
| Clear all user defined binary operators. More...
|
|
void | RemoveVar (const string_type &a_strVarName) |
| Remove a variable from internal storage. More...
|
|
const varmap_type & | GetUsedVar () const |
| Return a map containing the used variables only. More...
|
|
const varmap_type & | GetVar () const |
| Return a map containing the used variables only. More...
|
|
const valmap_type & | GetConst () const |
| Return a map containing all parser constants. More...
|
|
const string_type & | GetExpr () const |
| Retrieve the formula. More...
|
|
const funmap_type & | GetFunDef () const |
| Return prototypes of all parser functions. More...
|
|
const char_type ** | GetOprtDef () const |
| Get the default symbols used for the built in operators. More...
|
|
void | DefineNameChars (const char_type *a_szCharset) |
| Define the set of valid characters to be used in names of functions, variables, constants. More...
|
|
void | DefineOprtChars (const char_type *a_szCharset) |
| Define the set of valid characters to be used in names of binary operators and postfix operators. More...
|
|
void | DefineInfixOprtChars (const char_type *a_szCharset) |
| Define the set of valid characters to be used in names of infix operators. More...
|
|
const char_type * | ValidNameChars () const |
| Virtual function that defines the characters allowed in name identifiers. More...
|
|
const char_type * | ValidOprtChars () const |
| Virtual function that defines the characters allowed in operator definitions. More...
|
|
const char_type * | ValidInfixOprtChars () const |
| Virtual function that defines the characters allowed in infix operator definitions. More...
|
|
void | SetArgSep (char_type cArgSep) |
| Set argument separator. More...
|
|
char_type | GetArgSep () const |
| Get the argument separator character. More...
|
|
void | Error (EErrorCodes a_iErrc, int a_iPos=(int) mu::string_type::npos, const string_type &a_strTok=string_type()) const |
| Create an error containing the parse error position. More...
|
|
Mathematical expressions parser.
This version of the parser handles only integer numbers. It disables the built in operators thus it is slower than muParser. Integer values are stored in the double value_type and converted if needed.