Back to index

salome-gui  6.5.0
Public Member Functions | Protected Attributes
SUIT_DataObjectLevelIterator Class Reference

#include <SUIT_DataObjectIterator.h>

Inheritance diagram for SUIT_DataObjectLevelIterator:
Inheritance graph
[legend]
Collaboration diagram for SUIT_DataObjectLevelIterator:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 SUIT_DataObjectLevelIterator (SUIT_DataObject *root, const int start, const int end=0, const bool LeftToRight=true)
 Constructor.
virtual void operator++ ()
 Increment operator.

Protected Attributes

int myStartLevel
int myEndLevel

Detailed Description

Definition at line 68 of file SUIT_DataObjectIterator.h.


Constructor & Destructor Documentation

SUIT_DataObjectLevelIterator::SUIT_DataObjectLevelIterator ( SUIT_DataObject root,
const int  start,
const int  end = 0,
const bool  LeftToRight = true 
)

Constructor.

Definition at line 188 of file SUIT_DataObjectIterator.cxx.

: SUIT_DataObjectIterator( root, LeftToRight ? BreadthLeft : BreadthRight )
{
  myStartLevel = start;
  if ( end > start )
    myEndLevel = end;
  else
    myEndLevel = myStartLevel;

  while ( current() && depth() < myStartLevel )
    SUIT_DataObjectIterator::operator++();
}

Here is the call graph for this function:


Member Function Documentation

void SUIT_DataObjectLevelIterator::operator++ ( ) [virtual]

Increment operator.

Definition at line 205 of file SUIT_DataObjectIterator.cxx.

{
  if ( myCurrent )
  {
    SUIT_DataObjectIterator::operator++();
    if ( depth() > myEndLevel )
      myCurrent = 0;
  }
}

Here is the caller graph for this function:


Member Data Documentation

Definition at line 77 of file SUIT_DataObjectIterator.h.

Definition at line 76 of file SUIT_DataObjectIterator.h.


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