Open CASCADE Technology Reference Manual 8.0.2
Loading...
Searching...
No Matches
BRepGraph_ReverseIterator::LookupParentRefsOf< TraitsT > Class Template Reference

Typed iterator over parent ID relation lists that also resolves the specific RefId linking each parent to the child by lookup in the parent definition. Used only where the reverse relation stores parent IDs but no ref IDs. More...

#include <BRepGraph_ReverseIterator.hxx>

Public Types

using ParentIdType = typename TraitsT::ParentId
using ChildIdType = typename TraitsT::ChildId
using RefIdType = typename TraitsT::RefId
using ResultType = ParentRef<ParentIdType, RefIdType>
using ContainerType = typename TraitsT::ContainerType

Public Member Functions

 LookupParentRefsOf (const BRepGraph &theGraph, const ContainerType &theParents, const ChildIdType theChild)
bool More () const
void Next ()
ResultType Current () const
ParentIdType CurrentParentId () const
RefIdType CurrentRefId () const
uint32_t Index () const
NCollection_ForwardRangeIterator< LookupParentRefsOf > 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 TraitsT>
class BRepGraph_ReverseIterator::LookupParentRefsOf< TraitsT >

Typed iterator over parent ID relation lists that also resolves the specific RefId linking each parent to the child by lookup in the parent definition. Used only where the reverse relation stores parent IDs but no ref IDs.

Template Parameters
TraitsTTraits with: ParentId, ChildId, RefId types, FindRef(graph, parentId, childId) -> RefId (invalid if not found)

Member Typedef Documentation

◆ ChildIdType

template<typename TraitsT>
using BRepGraph_ReverseIterator::LookupParentRefsOf< TraitsT >::ChildIdType = typename TraitsT::ChildId

◆ ContainerType

template<typename TraitsT>
using BRepGraph_ReverseIterator::LookupParentRefsOf< TraitsT >::ContainerType = typename TraitsT::ContainerType

◆ ParentIdType

template<typename TraitsT>
using BRepGraph_ReverseIterator::LookupParentRefsOf< TraitsT >::ParentIdType = typename TraitsT::ParentId

◆ RefIdType

template<typename TraitsT>
using BRepGraph_ReverseIterator::LookupParentRefsOf< TraitsT >::RefIdType = typename TraitsT::RefId

◆ ResultType

template<typename TraitsT>
using BRepGraph_ReverseIterator::LookupParentRefsOf< TraitsT >::ResultType = ParentRef<ParentIdType, RefIdType>

Constructor & Destructor Documentation

◆ LookupParentRefsOf()

template<typename TraitsT>
BRepGraph_ReverseIterator::LookupParentRefsOf< TraitsT >::LookupParentRefsOf ( const BRepGraph & theGraph,
const ContainerType & theParents,
const ChildIdType theChild )
inline

Member Function Documentation

◆ begin()

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

◆ Current()

template<typename TraitsT>
ResultType BRepGraph_ReverseIterator::LookupParentRefsOf< TraitsT >::Current ( ) const
inlinenodiscard

◆ CurrentParentId()

template<typename TraitsT>
ParentIdType BRepGraph_ReverseIterator::LookupParentRefsOf< TraitsT >::CurrentParentId ( ) const
inlinenodiscard

◆ CurrentRefId()

template<typename TraitsT>
RefIdType BRepGraph_ReverseIterator::LookupParentRefsOf< TraitsT >::CurrentRefId ( ) const
inlinenodiscard

◆ end()

template<typename TraitsT>
NCollection_ForwardRangeSentinel BRepGraph_ReverseIterator::LookupParentRefsOf< TraitsT >::end ( ) const
inline

Returns a sentinel marking the end of iteration.

◆ Index()

template<typename TraitsT>
uint32_t BRepGraph_ReverseIterator::LookupParentRefsOf< TraitsT >::Index ( ) const
inlinenodiscard

◆ More()

template<typename TraitsT>
bool BRepGraph_ReverseIterator::LookupParentRefsOf< TraitsT >::More ( ) const
inlinenodiscard

◆ Next()

template<typename TraitsT>
void BRepGraph_ReverseIterator::LookupParentRefsOf< TraitsT >::Next ( )
inline

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