bcParserCPP 2.8
Math Parser for C++
|
Special case to improve performance. More...
Public Member Functions | |
CTwoParamNode (CMathParser< _CharT, _ValueT > *pParentParser, CNode< _ValueT > *LeftNode, CNode< _ValueT > *RightNode, typename CMathParser< _CharT, _ValueT >::PParserFunction FuncAddr) | |
virtual _ValueT | GetValue () |
Return the value of the sub-expression tree represented by this node. | |
virtual BOOL | IsUsed (void *Addr) |
Is the function or the variables whose address is given used in this sub-expression? | |
virtual void | Optimize () |
Optimize the sub-expression tree by evaluating constant sub-expressions at compile time. | |
virtual CNode< _ValueT >::NODE_TYPE | GetType () |
Return CNode::TWOPARAM as the node type. | |
Public Attributes | |
CMathParser< _CharT, _ValueT > * | pParentParser |
Parent parser instance. | |
CNode< _ValueT > * | Left |
The first parameter of this function. | |
CNode< _ValueT > * | Right |
The second parameter of this function. | |
CMathParser< _CharT, _ValueT > ::PParserFunction | fPtr |
User defined function to call. |
Special case to improve performance.
CTwoParamNode tow parameter functions such as POW(X,Y).
CNode<_ValueT>* CTwoParamNode< _CharT, _ValueT >::Left |
The first parameter of this function.
For example X in POW(X,Y).
CMathParser<_CharT,_ValueT>* CTwoParamNode< _CharT, _ValueT >::pParentParser |
Parent parser instance.
Used to call the user defined function implementation. In some cases, a user defined function can make use of the parser instance to solve domain specific problems.
CNode<_ValueT>* CTwoParamNode< _CharT, _ValueT >::Right |
The second parameter of this function.
For example Y in POW(X,Y).