Open CASCADE Technology Reference Manual 8.0.0
Loading...
Searching...
No Matches
Data Structures
BRepGraph_ReverseIterator Namespace Reference

Single-level typed iterators over parent definitions via reverse index. More...

Data Structures

struct  CompoundOfChildRefTraits
 
struct  CompSolidOfSolidRefTraits
 
struct  DefTraits
 Compile-time traits mapping typed ID to its definition type and accessor. More...
 
struct  DefTraits< BRepGraph_CoEdgeId >
 
struct  DefTraits< BRepGraph_CompoundId >
 
struct  DefTraits< BRepGraph_CompSolidId >
 
struct  DefTraits< BRepGraph_EdgeId >
 
struct  DefTraits< BRepGraph_FaceId >
 
struct  DefTraits< BRepGraph_OccurrenceId >
 
struct  DefTraits< BRepGraph_ProductId >
 
struct  DefTraits< BRepGraph_ShellId >
 
struct  DefTraits< BRepGraph_SolidId >
 
struct  DefTraits< BRepGraph_VertexId >
 
struct  DefTraits< BRepGraph_WireId >
 
struct  EdgeOfVertexRefTraits
 
struct  FaceOfWireRefTraits
 
struct  ParentRef
 Result pair returned by RefsParentsOf: parent definition ID + the RefId in that parent which references the child. More...
 
class  ParentsOf
 Typed iterator over a reverse-index vector of parent IDs. Skips removed parent definitions automatically in sequential iteration. Also provides indexed access (Length/Value) for callers that need random access into the underlying vector (e.g. BRepGraph_ParentExplorer). More...
 
struct  ProductOfOccurrenceRefTraits
 
class  RefsParentsOf
 Typed iterator over parent definitions via reverse index that also resolves the specific RefId linking each parent to the child. Requires a traits class to find the matching ref within each parent. More...
 
struct  ShellOfFaceRefTraits
 
struct  SolidOfShellRefTraits
 
struct  WireOfCoEdgeRefTraits
 

Detailed Description

Single-level typed iterators over parent definitions via reverse index.

These iterators wrap the NCollection_DynamicArray<TypedIdT> returned by TopoView reverse-index accessors (e.g. Edges().Faces(), Wires().Faces(), Vertices().Edges()). They provide a typed, skip-removed iteration pattern consistent with the forward iterators in BRepGraph_DefsIterator and BRepGraph_RefsIterator.

Usage:

// Traditional iteration:
for (BRepGraph_FacesOfEdge anIt(aGraph, aGraph.Topo().Edges().Faces(anEdgeId));
anIt.More(); anIt.Next())
{
const BRepGraph_FaceId aFaceId = anIt.CurrentId();
}
// Range-based for:
BRepGraph_FacesOfEdge(aGraph, aGraph.Topo().Edges().Faces(anEdgeId)))
{
// ...
}
Typed iterator over a reverse-index vector of parent IDs. Skips removed parent definitions automatica...
Definition BRepGraph_ReverseIterator.hxx:182
STL input iterator that wraps an OCCT More()/Next() iterator.
Definition NCollection_ForwardRange.hxx:142