TdkViewTreeRevIterator Class Reference

Reverse iterator for the TeViewTree class. More...

#include <TdkViewTreeIterator.h>

List of all members.

Public Member Functions

 TdkViewTreeRevIterator (TeView *view)
 --- TdkViewTreeRevIterator Construtors
 TdkViewTreeRevIterator (TeViewTree *root)
void first ()
 go to the root of the tree
void firstLeaf ()
 go to the first left 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
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.
bool isDone ()
 returns true if the iterator have finished visiting 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

Classes

struct  StackElem


Detailed Description

Reverse iterator for the TeViewTree class.


Constructor & Destructor Documentation

TdkViewTreeRevIterator::TdkViewTreeRevIterator ( TeView *  view  )  [inline]

--- TdkViewTreeRevIterator Construtors

TdkViewTreeRevIterator::TdkViewTreeRevIterator ( TeViewTree *  root  )  [inline]


Member Function Documentation

void TdkViewTreeRevIterator::first (  )  [inline]

go to the root of the tree

void TdkViewTreeRevIterator::firstLeaf (  ) 

go to the first left of the tree

void TdkViewTreeRevIterator::nextLeaf (  ) 

go to the next leaf of the tree

Move to the next leaf on the tree.

void TdkViewTreeRevIterator::skipChildren (  ) 

move to the next node skipping the current node childs

void TdkViewTreeRevIterator::next (  ) 

go to the next node of the tree

void TdkViewTreeRevIterator::next ( TeViewNodeType  type  ) 

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

bool TdkViewTreeRevIterator::isDone (  )  [inline]

returns true if the iterator have finished visiting the tree and false otherwise

TeViewNode * TdkViewTreeRevIterator::currentNode (  )  [inline]

returns the current node.

int TdkViewTreeRevIterator::currentDepth (  )  [inline]

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


Member Data Documentation

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


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