CAbstractTreeValueNode Class Reference
Inheritance diagram for CAbstractTreeValueNode:
Public Member Functions | |
virtual | ~CAbstractTreeValueNode () |
Destructor. | |
void | setValue (OpenViBE::float64 f64NewValue) |
OpenViBE::float64 | getValue () |
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) |
Protected Attributes | |
OpenViBE::float64 | m_f64Value |
Value associated with the node. |
Detailed Description
Class for terminal nodes containing a single value.
Member Function Documentation
void setValue | ( | OpenViBE::float64 | f64NewValue | ) | [inline] |
Used to set the value of the node.
- Parameters:
-
f64NewValue The node's new value.
References m_f64Value.
OpenViBE::float64 getValue | ( | ) | [inline] |
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