Open CASCADE Technology Reference Manual 8.0.2
Loading...
Searching...
No Matches
BRepGraph_ReverseIterator::ParentsOf< TypedIdT, ContainerT > Class Template Reference

Typed iterator over a relation 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 ContainerT &theParents)
 ParentsOf (const BRepGraph &theGraph, const ContainerT &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
size_t Size () const
TypedIdT Value (const size_t theIndex) const
 Returns the parent ID at the given bucket index (does NOT check removal status).
NCollection_ForwardRangeIterator< ParentsOf > begin ()
 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, typename ContainerT = NCollection_LinearVector<TypedIdT>>
class BRepGraph_ReverseIterator::ParentsOf< TypedIdT, ContainerT >

Typed iterator over a relation 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, typename ContainerT = NCollection_LinearVector<TypedIdT>>
BRepGraph_ReverseIterator::ParentsOf< TypedIdT, ContainerT >::ParentsOf ( const BRepGraph & theGraph,
const ContainerT & theParents )
inline

◆ ParentsOf() [2/2]

template<typename TypedIdT, typename ContainerT = NCollection_LinearVector<TypedIdT>>
BRepGraph_ReverseIterator::ParentsOf< TypedIdT, ContainerT >::ParentsOf ( const BRepGraph & theGraph,
const ContainerT & 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()

template<typename TypedIdT, typename ContainerT = NCollection_LinearVector<TypedIdT>>
NCollection_ForwardRangeIterator< ParentsOf > BRepGraph_ReverseIterator::ParentsOf< TypedIdT, ContainerT >::begin ( )
inline

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

◆ Current()

template<typename TypedIdT, typename ContainerT = NCollection_LinearVector<TypedIdT>>
TypedIdT BRepGraph_ReverseIterator::ParentsOf< TypedIdT, ContainerT >::Current ( ) const
inlinenodiscard

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

◆ CurrentId()

template<typename TypedIdT, typename ContainerT = NCollection_LinearVector<TypedIdT>>
TypedIdT BRepGraph_ReverseIterator::ParentsOf< TypedIdT, ContainerT >::CurrentId ( ) const
inlinenodiscard

◆ Definition()

template<typename TypedIdT, typename ContainerT = NCollection_LinearVector<TypedIdT>>
const DefTraits< TypedIdT >::DefType & BRepGraph_ReverseIterator::ParentsOf< TypedIdT, ContainerT >::Definition ( ) const
inlinenodiscard

Current parent definition (typed lookup via DefTraits).

◆ end()

template<typename TypedIdT, typename ContainerT = NCollection_LinearVector<TypedIdT>>
NCollection_ForwardRangeSentinel BRepGraph_ReverseIterator::ParentsOf< TypedIdT, ContainerT >::end ( ) const
inline

Returns a sentinel marking the end of iteration.

◆ Index()

template<typename TypedIdT, typename ContainerT = NCollection_LinearVector<TypedIdT>>
uint32_t BRepGraph_ReverseIterator::ParentsOf< TypedIdT, ContainerT >::Index ( ) const
inlinenodiscard

◆ More()

template<typename TypedIdT, typename ContainerT = NCollection_LinearVector<TypedIdT>>
bool BRepGraph_ReverseIterator::ParentsOf< TypedIdT, ContainerT >::More ( ) const
inlinenodiscard

◆ Next()

template<typename TypedIdT, typename ContainerT = NCollection_LinearVector<TypedIdT>>
void BRepGraph_ReverseIterator::ParentsOf< TypedIdT, ContainerT >::Next ( )
inline

◆ Size()

template<typename TypedIdT, typename ContainerT = NCollection_LinearVector<TypedIdT>>
size_t BRepGraph_ReverseIterator::ParentsOf< TypedIdT, ContainerT >::Size ( ) const
inlinenodiscard

◆ Value()

template<typename TypedIdT, typename ContainerT = NCollection_LinearVector<TypedIdT>>
TypedIdT BRepGraph_ReverseIterator::ParentsOf< TypedIdT, ContainerT >::Value ( const size_t theIndex) const
inlinenodiscard

Returns the parent ID at the given bucket index (does NOT check removal status).


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