Iterator over registered layers in a BRepGraph_LayerRegistry.
More...
#include <BRepGraph_LayerIterator.hxx>
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().
doSomething(aLayer);
doSomething(anIt.Value());
BRepGraph_LayerIterator(const BRepGraph_LayerRegistry &theRegistry)
Construct an iterator over all layers in the registry.
Definition BRepGraph_LayerIterator.hxx:39
opencascade::handle< T > handle
Intrusive smart pointer template for Standard_Transient descendants. This is an alias to opencascade:...
Definition Standard_Handle.hxx:421
◆ BRepGraph_LayerIterator()
Construct an iterator over all layers in the registry.
◆ begin()
◆ end()
Sentinel marking end of iteration.
◆ More()
| bool BRepGraph_LayerIterator::More |
( |
| ) |
const |
|
inlinenodiscard |
True if the iterator has a current element.
◆ NbLayers()
| uint32_t BRepGraph_LayerIterator::NbLayers |
( |
| ) |
const |
|
inlinenodiscard |
Number of layers in the registry.
◆ Next()
| void BRepGraph_LayerIterator::Next |
( |
| ) |
|
|
inline |
Advance to the next layer.
◆ Slot()
| uint32_t BRepGraph_LayerIterator::Slot |
( |
| ) |
const |
|
inlinenodiscard |
Return the current slot index in the registry.
◆ Value()
Return the current layer handle.
The documentation for this class was generated from the following file: