#include <SUIT_DataObjectIterator.h>

Public Types | |
| enum | DetourType { DepthLeft, DepthRight, BreadthLeft, BreadthRight, User } |
Public Member Functions | |
| SUIT_DataObjectLevelIterator (SUIT_DataObject *root, const int start, const int end=0, const bool LeftToRight=true) | |
| virtual void | operator++ () |
| SUIT_DataObject * | current () const |
| int | depth () const |
| int | detour () const |
Protected Member Functions | |
| SUIT_DataObject * | parent (SUIT_DataObject *) const |
| SUIT_DataObject * | extreme (DataObjectList &, bool FromLeft) const |
| SUIT_DataObject * | globalSibling (SUIT_DataObject *, bool next) const |
Protected Attributes | |
| int | myStartLevel |
| int | myEndLevel |
| SUIT_DataObject * | myRoot |
| SUIT_DataObject * | myCurrent |
enum SUIT_DataObjectIterator::DetourType [inherited] |
| SUIT_DataObjectLevelIterator::SUIT_DataObjectLevelIterator | ( | SUIT_DataObject * | root, |
| const int | start, | ||
| const int | end = 0, |
||
| const bool | LeftToRight = true |
||
| ) |
Constructor.
References SUIT_DataObjectIterator.current(), SUIT_DataObjectIterator.depth(), myEndLevel, myStartLevel, and operator++().
| void SUIT_DataObjectLevelIterator::operator++ | ( | ) | [virtual] |
Increment operator.
Reimplemented from SUIT_DataObjectIterator.
References SUIT_DataObjectIterator.depth(), SUIT_DataObjectIterator.myCurrent, and myEndLevel.
| SUIT_DataObject * SUIT_DataObjectIterator::current | ( | ) | const [inherited] |
Gets current data object.
References SUIT_DataObjectIterator.myCurrent.
| int SUIT_DataObjectIterator::depth | ( | ) | const [inherited] |
Gets depth of current lavel.
References SUIT_DataObjectIterator.myCurrentLevel.
| int SUIT_DataObjectIterator::detour | ( | ) | const [inherited] |
Gets detour type.
References SUIT_DataObjectIterator.myDetourType.
| SUIT_DataObject * SUIT_DataObjectIterator::parent | ( | SUIT_DataObject * | obj | ) | const [protected, inherited] |
Gets parent for object obj.
References SUIT_DataObjectIterator.myRoot, and SUIT_DataObject.parent().
| SUIT_DataObject * SUIT_DataObjectIterator::extreme | ( | DataObjectList & | aList, |
| bool | FromLeft | ||
| ) | const [protected, inherited] |
Gets first or last data object from list. Get firls, if FromLeft == true, else last.
| SUIT_DataObject * SUIT_DataObjectIterator::globalSibling | ( | SUIT_DataObject * | obj, |
| bool | next | ||
| ) | const [protected, inherited] |
Gets global sibling for object obj
References SUIT_DataObjectIterator.extreme(), SUIT_DataObject.myChildren, and SUIT_DataObjectIterator.parent().
int SUIT_DataObjectLevelIterator.myStartLevel [protected] |
int SUIT_DataObjectLevelIterator.myEndLevel [protected] |
SUIT_DataObject* SUIT_DataObjectIterator.myRoot [protected, inherited] |
SUIT_DataObject* SUIT_DataObjectIterator.myCurrent [protected, inherited] |