CAbstractTreeVariableNode Class Reference
Inheritance diagram for CAbstractTreeVariableNode:
CAbstractTreeNode

List of all members.

Public Member Functions

virtual void print (OpenViBE::Kernel::ILogManager &rLogManager)
 Prints the node to stdout.
virtual OpenViBE::boolean simplify (CAbstractTreeNode *&pModifiedNode)
virtual void levelOperators ()
virtual void useNegationOperator ()
virtual void generateCode (CEquationParser &oParser)

Detailed Description

Class for terminal nodes referencing a variable.


Member Function Documentation

virtual OpenViBE::boolean simplify ( CAbstractTreeNode *&  pModifiedNode) [inline, virtual]

Used to simplify this node (and its children if any).

Parameters:
pModifiedNodeReference to a pointer to modify if the current node object is to be destroyed and replaced. This pointer will contain the address of the new node.

Implements CAbstractTreeNode.

virtual void levelOperators ( ) [inline, virtual]

Part of the process of simplification. Levels recursively the associative operators nodes.

Implements CAbstractTreeNode.

virtual void useNegationOperator ( ) [inline, virtual]

Changes the tree so it uses the NEG operator whenever it is possible. (ie replaces (* -1 X) by (NEG X)

Implements CAbstractTreeNode.

virtual void generateCode ( CEquationParser &  oParser) [virtual]

Generates the set of function calls needed to do the desired computation.

Parameters:
oParserThe parser containing the function pointers stack and function contexts stack.

Implements CAbstractTreeNode.