#include <TdkViewTreeIterator.h>
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< StackElem > | TravStack |
traversal view tree stack | |
Classes | |
struct | StackElem |
Tecgraf - GIS development team
Tdk Framework
@(#) TdkViewTreeInterator.h
TdkViewTreeIterator::TdkViewTreeIterator | ( | TeViewTree * | root | ) |
TdkViewTreeIterator::TdkViewTreeIterator | ( | TeView * | view | ) |
TdkViewTreeIterator Construtor.
view | View whose tree goes to be visited to be visited by the iterator. |
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.
std::stack<StackElem> TdkViewTreeIterator::TravStack [private] |
traversal view tree stack