Version: 9.12.0
SUIT_DataObjectIterator Class Reference

#include <SUIT_DataObjectIterator.h>

Inheritance diagram for SUIT_DataObjectIterator:
Inheritance graph

Public Types

enum  DetourType {
  DepthLeft , DepthRight , BreadthLeft , BreadthRight ,
  User
}
 

Public Member Functions

 SUIT_DataObjectIterator (SUIT_DataObject *root, const int det, const bool fromTrueRoot=false)
 
virtual void operator++ ()
 
SUIT_DataObjectcurrent () const
 
int depth () const
 
int detour () const
 

Protected Member Functions

SUIT_DataObjectparent (SUIT_DataObject *) const
 
SUIT_DataObjectextreme (DataObjectList &, bool FromLeft) const
 
SUIT_DataObjectglobalSibling (SUIT_DataObject *, bool next) const
 

Protected Attributes

SUIT_DataObjectmyRoot
 
SUIT_DataObjectmyCurrent
 

Private Attributes

SUIT_DataObjectmyExtremeChild
 
int myDetourType
 
QList< int > myChildrenIndexes
 ! Indexes of the iterated children at each level (optimization for avoid indexOf call) More...
 

Detailed Description

Provides functionality of SUIT tree detour It is possible to use "to-depth" or "to-breadth" detour and to control level detour (from left or from right)

Provides functionality of SUIT tree detour between certain levels Only "to-breadth" detour is used

Member Enumeration Documentation

◆ DetourType

Enumerator
DepthLeft 
DepthRight 
BreadthLeft 
BreadthRight 
User 

Constructor & Destructor Documentation

◆ SUIT_DataObjectIterator()

SUIT_DataObjectIterator::SUIT_DataObjectIterator ( SUIT_DataObject root,
const int  det,
const bool  fromTrueRoot = false 
)

Constructor.

References myCurrent, myExtremeChild, myRoot, and SUIT_DataObject::root().

Member Function Documentation

◆ current()

SUIT_DataObject * SUIT_DataObjectIterator::current ( ) const

Gets current data object.

References myCurrent.

◆ depth()

int SUIT_DataObjectIterator::depth ( ) const

Gets depth of current lavel.

References myChildrenIndexes.

◆ detour()

int SUIT_DataObjectIterator::detour ( ) const

Gets detour type.

References myDetourType.

◆ extreme()

SUIT_DataObject * SUIT_DataObjectIterator::extreme ( DataObjectList aList,
bool  FromLeft 
) const
protected

Gets first or last data object from list. Get firls, if FromLeft == true, else last.

◆ globalSibling()

SUIT_DataObject * SUIT_DataObjectIterator::globalSibling ( SUIT_DataObject obj,
bool  next 
) const
protected

Gets global sibling for object obj

References extreme(), SUIT_DataObject::myChildren, and parent().

◆ operator++()

void SUIT_DataObjectIterator::operator++ ( )
virtual

◆ parent()

SUIT_DataObject * SUIT_DataObjectIterator::parent ( SUIT_DataObject obj) const
protected

Gets parent for object obj.

References myRoot, and SUIT_DataObject::parent().

Member Data Documentation

◆ myChildrenIndexes

QList<int> SUIT_DataObjectIterator::myChildrenIndexes
private

! Indexes of the iterated children at each level (optimization for avoid indexOf call)

◆ myCurrent

SUIT_DataObject* SUIT_DataObjectIterator::myCurrent
protected

◆ myDetourType

int SUIT_DataObjectIterator::myDetourType
private

◆ myExtremeChild

SUIT_DataObject* SUIT_DataObjectIterator::myExtremeChild
private

◆ myRoot

SUIT_DataObject* SUIT_DataObjectIterator::myRoot
protected

The documentation for this class was generated from the following files: