Open CASCADE Technology Reference Manual 8.0.2
Loading...
Searching...
No Matches
BRepGraph::RefsView::GenOps Class Reference

Generic reference id queries. More...

#include <BRepGraph_RefsView.hxx>

Public Member Functions

uint32_t Nb (const BRepGraph_RefId::Kind theKind) const
 Return the number of references of the specified kind (including soft-removed).
bool IsValid (const BRepGraph_RefId theRef) const
 Return true if the reference id kind and index are within storage bounds.
bool IsActive (const BRepGraph_RefId theRef) const
 Return true if the reference id is valid and not soft-removed.
bool IsRemoved (const BRepGraph_RefId theRef) const
 Return true if the specified typed RefId is invalid or marked removed.
BRepGraph_RefId RefAtStep (const BRepGraph_NodeId theParent, const int theStep) const
 Return the direct parent-owned RefId stored at the specified child step. This is a structural lookup over the parent's raw ref arrays and does not skip removed refs or refs targeting removed child defs.
BRepGraph_NodeId ChildNode (const BRepGraph_RefId theRef) const
 Resolve the child definition node referenced by any typed RefId.
TopLoc_Location LocalLocation (const BRepGraph_RefId theRef) const
 Return the local location carried by the specified typed RefId. OccurrenceRef and invalid refs return identity.
TopAbs_Orientation Orientation (const BRepGraph_RefId theRef) const
 Return the orientation carried by the specified typed RefId. OccurrenceRef and invalid refs return TopAbs_FORWARD.

Detailed Description

Generic reference id queries.

Member Function Documentation

◆ ChildNode()

BRepGraph_NodeId BRepGraph::RefsView::GenOps::ChildNode ( const BRepGraph_RefId theRef) const
nodiscard

Resolve the child definition node referenced by any typed RefId.

◆ IsActive()

bool BRepGraph::RefsView::GenOps::IsActive ( const BRepGraph_RefId theRef) const
nodiscard

Return true if the reference id is valid and not soft-removed.

◆ IsRemoved()

bool BRepGraph::RefsView::GenOps::IsRemoved ( const BRepGraph_RefId theRef) const
nodiscard

Return true if the specified typed RefId is invalid or marked removed.

◆ IsValid()

bool BRepGraph::RefsView::GenOps::IsValid ( const BRepGraph_RefId theRef) const
nodiscard

Return true if the reference id kind and index are within storage bounds.

◆ LocalLocation()

TopLoc_Location BRepGraph::RefsView::GenOps::LocalLocation ( const BRepGraph_RefId theRef) const
nodiscard

Return the local location carried by the specified typed RefId. OccurrenceRef and invalid refs return identity.

◆ Nb()

uint32_t BRepGraph::RefsView::GenOps::Nb ( const BRepGraph_RefId::Kind theKind) const
nodiscard

Return the number of references of the specified kind (including soft-removed).

◆ Orientation()

TopAbs_Orientation BRepGraph::RefsView::GenOps::Orientation ( const BRepGraph_RefId theRef) const
nodiscard

Return the orientation carried by the specified typed RefId. OccurrenceRef and invalid refs return TopAbs_FORWARD.

◆ RefAtStep()

BRepGraph_RefId BRepGraph::RefsView::GenOps::RefAtStep ( const BRepGraph_NodeId theParent,
const int theStep ) const
nodiscard

Return the direct parent-owned RefId stored at the specified child step. This is a structural lookup over the parent's raw ref arrays and does not skip removed refs or refs targeting removed child defs.


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