CAbstractTreeValueNode Class Reference
Inheritance diagram for CAbstractTreeValueNode:
CAbstractTreeNode

List of all members.

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:
f64NewValueThe node's new value.

References m_f64Value.

OpenViBE::float64 getValue ( ) [inline]

Used to know the value of the node.

Returns:
The node's value.

References m_f64Value.

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.