Lightweight typed index into a per-kind reference vector inside BRepGraph.
More...
#include <BRepGraph_RefId.hxx>
Lightweight typed index into a per-kind reference vector inside BRepGraph.
The pair (Kind, Index) forms a unique reference identifier within one graph instance. Default-constructed RefId has Index = UINT32_MAX (invalid).
◆ Kind
Enumeration of supported topology reference kinds.
| Enumerator |
|---|
| Shell | Shell reference entries (usage of shell definitions)
|
| Face | Face reference entries (usage of face definitions)
|
| Wire | Wire reference entries (usage of wire definitions)
|
| Vertex | Vertex reference entries (usage of vertex definitions)
|
| Solid | Solid reference entries (usage of solid definitions)
|
| Child | Generic child references (usage of mixed node definitions)
|
| Occurrence | Occurrence references (usage of occurrence definitions)
|
◆ BRepGraph_RefId() [1/2]
| BRepGraph_RefId::BRepGraph_RefId |
( |
| ) |
|
|
inline |
◆ BRepGraph_RefId() [2/2]
| BRepGraph_RefId::BRepGraph_RefId |
( |
const Kind | theKind, |
|
|
const uint32_t | theIdx ) |
|
inline |
◆ Invalid()
Invalid sentinel id for the specified kind.
◆ IsOwned()
| bool BRepGraph_RefId::IsOwned |
( |
const BRepGraph & | theGraph | ) |
const |
|
nodiscard |
Return true if this reference entry has an active owner in the given graph.
◆ IsRemoved()
| bool BRepGraph_RefId::IsRemoved |
( |
const BRepGraph & | theGraph | ) |
const |
|
nodiscard |
Return true if this reference entry has been soft-removed in the given graph.
◆ IsTopologyRefKind()
| bool BRepGraph_RefId::IsTopologyRefKind |
( |
const Kind | theKind | ) |
|
|
inlinestatic |
◆ IsValid() [1/2]
| bool BRepGraph_RefId::IsValid |
( |
| ) |
const |
|
inlinenodiscard |
◆ IsValid() [2/2]
| bool BRepGraph_RefId::IsValid |
( |
const uint32_t | theMaxCount | ) |
const |
|
inlinenodiscard |
True if this id points to an allocated slot within [0, theMaxCount). UINT32_MAX (invalid sentinel) always fails this check for any realistic count.
◆ IsValidIn() [1/2]
template<typename CountProviderT>
| auto BRepGraph_RefId::IsValidIn |
( |
const CountProviderT & | theProvider | ) |
const -> decltype(theProvider.Nb(), bool())
|
|
inlinenodiscard |
◆ IsValidIn() [2/2]
template<typename CountProviderT>
| auto BRepGraph_RefId::IsValidIn |
( |
const CountProviderT & | theProvider | ) |
const -> decltype(theProvider.Size(), bool())
|
|
inlinenodiscard |
◆ IsValidKind()
| bool BRepGraph_RefId::IsValidKind |
( |
const Kind | theKind | ) |
|
|
inlinestatic |
True if the kind value is one of the supported reference kinds.
◆ operator!=()
◆ operator+()
| BRepGraph_RefId BRepGraph_RefId::operator+ |
( |
const uint32_t | theOffset | ) |
const |
|
inlinenodiscard |
◆ operator++() [1/2]
◆ operator++() [2/2]
◆ operator-()
| BRepGraph_RefId BRepGraph_RefId::operator- |
( |
const uint32_t | theOffset | ) |
const |
|
inlinenodiscard |
◆ operator<()
◆ operator==()
◆ Start()
First valid id in a dense sequence for the specified kind.
◆ Visit()
Dispatch a generic ref id to a callable taking the matching typed ref id.
◆ Index
| uint32_t BRepGraph_RefId::Index |
◆ RefKind
| Kind BRepGraph_RefId::RefKind |
◆ THE_INVALID_INDEX
| uint32_t BRepGraph_RefId::THE_INVALID_INDEX = std::numeric_limits<uint32_t>::max() |
|
staticconstexpr |
◆ THE_START_INDEX
| uint32_t BRepGraph_RefId::THE_START_INDEX = 0u |
|
staticconstexpr |
The documentation for this struct was generated from the following file: