bcParserCPP 2.8
Math Parser for C++
Public Member Functions | Public Attributes
CNParamNode< _CharT, _ValueT > Class Template Reference

CNParamNode represents functions that take any number of parameters. More...

Inheritance diagram for CNParamNode< _CharT, _ValueT >:
CNode< _ValueT >

List of all members.

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

Detailed Description

template<typename _CharT, typename _ValueT>
class CNParamNode< _CharT, _ValueT >

CNParamNode represents functions that take any number of parameters.

For example SUM(P1, P2, P3, P4, .... ,PN)


Member Data Documentation

template<typename _CharT , typename _ValueT >
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).

template<typename _CharT , typename _ValueT >
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.

 All Classes Functions Variables Typedefs Enumerations