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

Special case to improve performance. More...

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

List of all members.

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.

Detailed Description

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

Special case to improve performance.

CTwoParamNode tow parameter functions such as POW(X,Y).


Member Data Documentation

template<typename _CharT , typename _ValueT >
CNode<_ValueT>* CTwoParamNode< _CharT, _ValueT >::Left

The first parameter of this function.

For example X in POW(X,Y).

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

template<typename _CharT , typename _ValueT >
CNode<_ValueT>* CTwoParamNode< _CharT, _ValueT >::Right

The second parameter of this function.

For example Y in POW(X,Y).

 All Classes Functions Variables Typedefs Enumerations