#include <variabletree.h>
Public Member Functions | |
VariableTree () | |
Constructor. | |
virtual | ~VariableTree () |
void | insertNode (unsigned parent_var, unsigned introduced_var, bool direct_output) |
Inserts a new node into the variable tree. | |
void | print (OutputStream &dos) |
Prints the complete variable tree. | |
VariableTreeNode * | getRootNode () |
Returns the root node of the variable tree. | |
Private Attributes | |
VariableTreeNode * | root |
The root node of the variable tree. |
Represents the constructed variable tree, which is constructed through ParVarMap and is needed for constructing the ProjectionTree.
Definition at line 50 of file variabletree.h.
VariableTree::VariableTree | ( | ) |
Constructor.
Constructor - creating object for variable $root
.
Definition at line 37 of file variabletree.cpp.
References ParVarMap::getDirectOutputInfo(), ParVarMap::getInstance(), ParVarMap::getParVar(), ParVarMap::getVarsq(), and insertNode().
VariableTree::~VariableTree | ( | ) | [virtual] |
VariableTreeNode * VariableTree::getRootNode | ( | ) | [inline] |
Returns the root node of the variable tree.
Returns the root node of the variable tree, i.e. returns the member variable, which is always variable $root
.
VariableTreeNode* | Pointer to a VariableTreeNode object. |
Definition at line 89 of file variabletree.h.
References root.
Referenced by ProjectionTree::ProjectionTree().
void VariableTree::insertNode | ( | unsigned | parent_var, | |
unsigned | introduced_var, | |||
bool | direct_output | |||
) |
Inserts a new node into the variable tree.
Inserts a new node into the variable tree, which is appended as child of the first argument of this method.
[in] | parent_var | Parent node of the new node. |
[in] | introduced_var | New node or variable respectively to be inserted. |
[in] | direct_output | Indicator if new node or variable respectively has direct output in its corresponding ForExpression, i.e. true if direct output is present, false otherwise. |
void |
Definition at line 52 of file variabletree.cpp.
References VariableTreeNode::insertNode(), and root.
Referenced by VariableTree().
void VariableTree::print | ( | OutputStream & | dos | ) |
Prints the complete variable tree.
Prints the complete variable tree.
[in] | dos | Pointer to a OutputStream object. |
void |
Definition at line 57 of file variabletree.cpp.
References VariableTreeNode::print(), and root.
Referenced by Executor::buildVariableTree().
VariableTreeNode * VariableTree::root [private] |
The root node of the variable tree.
The root node of the variable tree, which is always variable $root
.
Definition at line 96 of file variabletree.h.
Referenced by getRootNode(), insertNode(), print(), and ~VariableTree().