VariableTree Class Reference

Represents the constructed variable tree. More...

#include <variabletree.h>

Collaboration diagram for VariableTree:

Collaboration graph
[legend]

List of all members.

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.
VariableTreeNodegetRootNode ()
 Returns the root node of the variable tree.

Private Attributes

VariableTreeNoderoot
 The root node of the variable tree.


Detailed Description

Represents the constructed variable tree.

Represents the constructed variable tree, which is constructed through ParVarMap and is needed for constructing the ProjectionTree.

Author:
Michael Schmidt

Gunnar Jehl

Version:
2.1
License:
Software License Agreement (BSD License)

Definition at line 50 of file variabletree.h.


Constructor & Destructor Documentation

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]

Destructor.

Definition at line 48 of file variabletree.cpp.

References root.


Member Function Documentation

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.

Return values:
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.

Parameters:
[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.
Return values:
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.

Parameters:
[in] dos Pointer to a OutputStream object.
Return values:
void 

Definition at line 57 of file variabletree.cpp.

References VariableTreeNode::print(), and root.

Referenced by Executor::buildVariableTree().


Member Data Documentation

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().


Generated on Sun May 24 20:20:31 2009 for G(arbage) C(ollected) X(Query) Engine by  doxygen 1.5.9