bcParserCPP 2.8
Math Parser for C++
|
CNParamNode represents functions that take any number of parameters. More...
Public Member Functions | |
CNParamNode (CMathParser< _CharT, _ValueT > *pParentParser, CNode< _ValueT > **nodes, int nodeCount, typename CMathParser< _CharT, _ValueT >::PParserFunction FuncAddr) | |
virtual _ValueT | GetValue () |
Return the computed value of this node. | |
virtual BOOL | IsUsed (void *Addr) |
Is the variable or the function whose address is given used in the expression? | |
virtual void | Optimize () |
Optimize the sub-expression by collapsing constant expressions. | |
virtual CNode< _ValueT >::NODE_TYPE | GetType () |
Return node type CNode::NPARAM. | |
Public Attributes | |
CMathParser< _CharT, _ValueT > * | pParentParser |
Parent parser instance. | |
CNode< _ValueT > ** | nodes |
Nodes that represent the parameters of this function node. | |
int | pCount |
Number of parameters that this node takes. | |
CMathParser< _CharT, _ValueT > ::PParserFunction | fPtr |
The function to call. | |
_ValueT * | param_array |
CNParamNode represents functions that take any number of parameters.
For example SUM(P1, P2, P3, P4, .... ,PN)
CNode<_ValueT>** CNParamNode< _CharT, _ValueT >::nodes |
Nodes that represent the parameters of this function node.
For example X,Y,Z in SUM(X,Y,Z).
CMathParser<_CharT,_ValueT>* CNParamNode< _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.