Open CASCADE Technology Reference Manual 8.0.0
Loading...
Searching...
No Matches
Public Member Functions
BRepGraph_LayerIterator Class Reference

Iterator over registered layers in a BRepGraph_LayerRegistry. More...

#include <BRepGraph_LayerIterator.hxx>

Public Member Functions

 BRepGraph_LayerIterator (const BRepGraph_LayerRegistry &theRegistry)
 Construct an iterator over all layers in the registry.
 
bool More () const
 True if the iterator has a current element.
 
void Next ()
 Advance to the next layer.
 
const occ::handle< BRepGraph_Layer > & Value () const
 Return the current layer handle.
 
int Slot () const
 Return the current slot index in the registry.
 
int NbLayers () const
 Number of layers in the registry.
 
NCollection_ForwardRangeIterator< BRepGraph_LayerIteratorbegin ()
 STL range-for support.
 
NCollection_ForwardRangeSentinel end () const
 Sentinel marking end of iteration.
 

Detailed Description

Iterator over registered layers in a BRepGraph_LayerRegistry.

Provides zero-allocation iteration with OCCT More()/Next()/Value() pattern and STL range-for via begin()/end().

// Range-for:
// Traditional:
for (BRepGraph_LayerIterator anIt(aGraph.LayerRegistry()); anIt.More(); anIt.Next())
doSomething(anIt.Value());
Iterator over registered layers in a BRepGraph_LayerRegistry.
Definition BRepGraph_LayerIterator.hxx:36
STL input iterator that wraps an OCCT More()/Next() iterator.
Definition NCollection_ForwardRange.hxx:142
Intrusive smart pointer for use with Standard_Transient class and its descendants.
Definition Standard_Handle.hxx:54

Constructor & Destructor Documentation

◆ BRepGraph_LayerIterator()

BRepGraph_LayerIterator::BRepGraph_LayerIterator ( const BRepGraph_LayerRegistry & theRegistry)
inlineexplicit

Construct an iterator over all layers in the registry.

Member Function Documentation

◆ begin()

NCollection_ForwardRangeIterator< BRepGraph_LayerIterator > BRepGraph_LayerIterator::begin ( )
inline

STL range-for support.

◆ end()

NCollection_ForwardRangeSentinel BRepGraph_LayerIterator::end ( ) const
inline

Sentinel marking end of iteration.

◆ More()

bool BRepGraph_LayerIterator::More ( ) const
inline

True if the iterator has a current element.

◆ NbLayers()

int BRepGraph_LayerIterator::NbLayers ( ) const
inline

Number of layers in the registry.

◆ Next()

void BRepGraph_LayerIterator::Next ( )
inline

Advance to the next layer.

◆ Slot()

int BRepGraph_LayerIterator::Slot ( ) const
inline

Return the current slot index in the registry.

◆ Value()

const occ::handle< BRepGraph_Layer > & BRepGraph_LayerIterator::Value ( ) const
inline

Return the current layer handle.


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