CAbstractTreeVariableNode Class Reference
Inheritance diagram for CAbstractTreeVariableNode:
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:
-
pModifiedNode Reference 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:
-
oParser The parser containing the function pointers stack and function contexts stack.
Implements CAbstractTreeNode.
Generated on Tue Jun 26 2012 15:25:54 for Documentation by 1.7.4