#include <TdkViewTreeIterator.h>
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< StackElem > | TravStack |
Classes | |
| struct | StackElem |
| TdkViewTreeRevIterator::TdkViewTreeRevIterator | ( | TeView * | view | ) | [inline] |
--- TdkViewTreeRevIterator Construtors
| TdkViewTreeRevIterator::TdkViewTreeRevIterator | ( | TeViewTree * | root | ) | [inline] |
| 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.
std::stack<StackElem> TdkViewTreeRevIterator::TravStack [private] |
1.5.2