Open CASCADE Technology Reference Manual 8.0.0
Loading...
Searching...
No Matches
Public Member Functions
BRepGraph_ReverseIterator::ParentsOf< TypedIdT > Class Template Reference

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...

#include <BRepGraph_ReverseIterator.hxx>

Public Member Functions

 ParentsOf (const BRepGraph &theGraph, const NCollection_DynamicArray< TypedIdT > &theParents)
 
 ParentsOf (const BRepGraph &theGraph, const NCollection_DynamicArray< TypedIdT > &theParents, const uint32_t theStartIndex)
 Construct starting at a given vector index (for resumable iteration). Skips to the first non-removed entry at or after theStartIndex.
 
bool More () const
 
void Next ()
 
TypedIdT CurrentId () const
 
TypedIdT Current () const
 Alias for CurrentId(), enables range-for via NCollection_ForwardRange Current() priority.
 
const DefTraits< TypedIdT >::DefType & Definition () const
 Current parent definition (typed lookup via DefTraits).
 
uint32_t Index () const
 
int Length () const
 Returns the total number of parent entries (including removed).
 
size_t Size () const
 
TypedIdT Value (const size_t theIndex) const
 Returns the parent ID at the given index (does NOT check IsRemoved).
 
NCollection_ForwardRangeIterator< ParentsOfbegin ()
 Returns an STL-compatible iterator for range-based for loops.
 
NCollection_ForwardRangeSentinel end () const
 Returns a sentinel marking the end of iteration.
 

Detailed Description

template<typename TypedIdT>
class BRepGraph_ReverseIterator::ParentsOf< TypedIdT >

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).

Template Parameters
TypedIdTTyped ID such as BRepGraph_FaceId, BRepGraph_EdgeId, etc.

Constructor & Destructor Documentation

◆ ParentsOf() [1/2]

template<typename TypedIdT >
BRepGraph_ReverseIterator::ParentsOf< TypedIdT >::ParentsOf ( const BRepGraph & theGraph,
const NCollection_DynamicArray< TypedIdT > & theParents )
inline

◆ ParentsOf() [2/2]

template<typename TypedIdT >
BRepGraph_ReverseIterator::ParentsOf< TypedIdT >::ParentsOf ( const BRepGraph & theGraph,
const NCollection_DynamicArray< TypedIdT > & theParents,
const uint32_t theStartIndex )
inline

Construct starting at a given vector index (for resumable iteration). Skips to the first non-removed entry at or after theStartIndex.

Member Function Documentation

◆ begin()

Returns an STL-compatible iterator for range-based for loops.

◆ Current()

template<typename TypedIdT >
TypedIdT BRepGraph_ReverseIterator::ParentsOf< TypedIdT >::Current ( ) const
inline

Alias for CurrentId(), enables range-for via NCollection_ForwardRange Current() priority.

◆ CurrentId()

template<typename TypedIdT >
TypedIdT BRepGraph_ReverseIterator::ParentsOf< TypedIdT >::CurrentId ( ) const
inline

◆ Definition()

template<typename TypedIdT >
const DefTraits< TypedIdT >::DefType & BRepGraph_ReverseIterator::ParentsOf< TypedIdT >::Definition ( ) const
inline

Current parent definition (typed lookup via DefTraits).

◆ end()

Returns a sentinel marking the end of iteration.

◆ Index()

◆ Length()

template<typename TypedIdT >
int BRepGraph_ReverseIterator::ParentsOf< TypedIdT >::Length ( ) const
inline

Returns the total number of parent entries (including removed).

◆ More()

template<typename TypedIdT >
bool BRepGraph_ReverseIterator::ParentsOf< TypedIdT >::More ( ) const
inline

◆ Next()

◆ Size()

◆ Value()

template<typename TypedIdT >
TypedIdT BRepGraph_ReverseIterator::ParentsOf< TypedIdT >::Value ( const size_t theIndex) const
inline

Returns the parent ID at the given index (does NOT check IsRemoved).


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