TObj_LabelIterator Class Reference

#include <TObj_LabelIterator.hxx>

Inheritance diagram for TObj_LabelIterator:
Inheritance graph
[legend]

Public Member Functions

 TObj_LabelIterator (const TDF_Label &theLabel, const Standard_Boolean isRecursive=Standard_False)
 Creates an iterator an initialize it by theLabel and recursive flag. If isRecursive is Standard_True make recursive iterations.
virtual Standard_Boolean More () const
 Returns True if there is a current Item in the iteration.
virtual void Next ()
 Move to the next Item.
virtual Handle< TObj_ObjectValue () const
 Returns the current item.
const TDF_LabelLabelValue () const
 Returns the label of the current item.

Protected Member Functions

 TObj_LabelIterator ()
 Creates an Empty Iterator.
virtual void MakeStep ()=0
 Shifts iterator to the next object.
void Init (const TDF_Label &theLabel, const Standard_Boolean isRecursive=Standard_False)
 Initialize Iterator by the theLabel.

Protected Attributes

TDF_Label myNode
 Current node.
TDF_ChildIterator myIterator
 OCAF Child iterator.
Handle< TObj_ObjectmyObject
 Current Object.

Detailed Description

This class is a basis for OCAF based iterators.


Constructor & Destructor Documentation

TObj_LabelIterator::TObj_LabelIterator (  )  [protected]

Constructor

TObj_LabelIterator::TObj_LabelIterator ( const TDF_Label theLabel,
const Standard_Boolean  isRecursive = Standard_False 
)

Constructor


Member Function Documentation

void TObj_LabelIterator::Init ( const TDF_Label theLabel,
const Standard_Boolean  isRecursive = Standard_False 
) [inline, protected]

Internal methods

const TDF_Label& TObj_LabelIterator::LabelValue (  )  const [inline]
virtual void TObj_LabelIterator::MakeStep (  )  [protected, pure virtual]

Iterating methods

Implemented in TObj_OcafObjectIterator, and TObj_ReferenceIterator.

virtual Standard_Boolean TObj_LabelIterator::More ( void   )  const [inline, virtual]

Redefined methods

Reimplemented from TObj_ObjectIterator.

virtual void TObj_LabelIterator::Next (  )  [virtual]

Reimplemented from TObj_ObjectIterator.

virtual Handle< TObj_Object > TObj_LabelIterator::Value ( void   )  const [inline, virtual]

Reimplemented from TObj_ObjectIterator.


Field Documentation

Fields


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Generated on Thu Mar 3 11:07:10 2011 for Open CASCADE Technology by  doxygen 1.6.3