TdkViewTreeIterator Class Reference

Iterator for the TeViewTree class. More...

#include <TdkViewTreeIterator.h>

List of all members.

Public Member Functions

 TdkViewTreeIterator (TeViewTree *root)
 TdkViewTreeIterator.
 TdkViewTreeIterator (TeView *view)
 TdkViewTreeIterator Construtor.
void next ()
 go to the next node of the tree
void next (TeViewNodeType type)
 Go to the next node of the tree with the given type.
void first ()
 go to the root of the tree
void firstLeaf ()
 go to the first leaf of the tree
void nextLeaf ()
 go to the next leaf of the tree
void skipChildren ()
 move to the next node skipping the current node childs
bool isDone ()
 returns true if the iterator have passed the end of the tree and false otherwise
TeViewNode * currentNode ()
 returns the current node.
int currentDepth ()
 Returns the depth of the current node. The root has depth is 0.

Private Attributes

std::stack< StackElemTravStack
 traversal view tree stack

Classes

struct  StackElem


Detailed Description

Iterator for the TeViewTree class.

Tecgraf - GIS development team

Tdk Framework

@(#) TdkViewTreeInterator.h


Constructor & Destructor Documentation

TdkViewTreeIterator::TdkViewTreeIterator ( TeViewTree *  root  ) 

TdkViewTreeIterator.

Parameters:
root root node of the view tree to be visited by the iterator

TdkViewTreeIterator::TdkViewTreeIterator ( TeView *  view  ) 

TdkViewTreeIterator Construtor.

Parameters:
view View whose tree goes to be visited to be visited by the iterator.


Member Function Documentation

void TdkViewTreeIterator::next (  ) 

go to the next node of the tree

void TdkViewTreeIterator::next ( TeViewNodeType  type  ) 

Go to the next node of the tree with the given type.

void TdkViewTreeIterator::first (  )  [inline]

go to the root of the tree

void TdkViewTreeIterator::firstLeaf (  ) 

go to the first leaf of the tree

void TdkViewTreeIterator::nextLeaf (  ) 

go to the next leaf of the tree

Move to the next leaf on the tree.

void TdkViewTreeIterator::skipChildren (  ) 

move to the next node skipping the current node childs

Move to the next node in the tree skipping the current node children.

bool TdkViewTreeIterator::isDone (  )  [inline]

returns true if the iterator have passed the end of the tree and false otherwise

TeViewNode * TdkViewTreeIterator::currentNode (  )  [inline]

returns the current node.

int TdkViewTreeIterator::currentDepth (  )  [inline]

Returns the depth of the current node. The root has depth is 0.


Member Data Documentation

std::stack<StackElem> TdkViewTreeIterator::TravStack [private]

traversal view tree stack


The documentation for this class was generated from the following files:
Generated on Fri Jun 15 16:54:59 2007 for TDK by  doxygen 1.5.2