![]() |
Open CASCADE Technology Reference Manual 8.0.2
|
Compile-time typed wrapper around BRepGraph_RefId. More...
#include <BRepGraph_RefId.hxx>
Public Member Functions | |
| Typed () | |
| Typed (const uint32_t theIdx) | |
| Typed (const BRepGraph_RefId theRefId) | |
| Construct from an untyped reference id of the same kind. | |
| template<Kind OtherKind, typename std::enable_if_t< OtherKind !=TheKind, int > = 0> | |
| Typed (const Typed< OtherKind > &)=delete | |
| bool | IsValid () const |
| bool | IsValid (const uint32_t theMaxCount) const |
| True if this id points to an allocated slot within [0, theMaxCount). UINT32_MAX (invalid sentinel) always fails this check for any realistic count. | |
| template<typename CountProviderT> | |
| auto | IsValidIn (const CountProviderT &theProvider) const -> decltype(theProvider.Nb(), bool()) |
| template<typename CountProviderT> | |
| auto | IsValidIn (const CountProviderT &theProvider) const -> decltype(theProvider.Size(), bool()) |
| operator BRepGraph_RefId () const | |
| bool | operator== (const Typed &theOther) const |
| bool | operator!= (const Typed &theOther) const |
| bool | operator< (const Typed &theOther) const |
| bool | operator<= (const Typed &theOther) const |
| bool | operator> (const Typed &theOther) const |
| bool | operator>= (const Typed &theOther) const |
| Typed & | operator++ () |
| Pre-increment (++id). | |
| Typed | operator++ (int) |
| Post-increment (id++). | |
| Typed | operator+ (const uint32_t theOffset) const |
| Advance by offset. | |
| Typed | operator- (const uint32_t theOffset) const |
| Retreat by offset. | |
| bool | operator== (const BRepGraph_RefId &theOther) const |
| bool | operator!= (const BRepGraph_RefId &theOther) const |
| bool | IsRemoved (const BRepGraph &theGraph) const |
| Return true if this reference entry has been soft-removed in the given graph. | |
| bool | IsOwned (const BRepGraph &theGraph) const |
| Return true if this reference entry has an active owner in the given graph. | |
Static Public Member Functions | |
| static Typed | Start () |
| First valid id in a dense per-kind sequence. | |
| static Typed | Invalid () |
| Invalid sentinel id. | |
| static Typed | FromRefId (const BRepGraph_RefId theRefId) |
Data Fields | |
| uint32_t | Index |
Static Public Attributes | |
| static constexpr uint32_t | THE_START_INDEX = 0u |
| static constexpr uint32_t | THE_INVALID_INDEX = std::numeric_limits<uint32_t>::max() |
Compile-time typed wrapper around BRepGraph_RefId.
Provides compile-time kind safety similarly to BRepGraph_NodeId::Typed.
|
inline |
|
inlineexplicit |
|
inlineexplicit |
Construct from an untyped reference id of the same kind.
|
delete |
|
inlinestatic |
|
inlinestaticnodiscard |
Invalid sentinel id.
|
inlinenodiscard |
Return true if this reference entry has an active owner in the given graph.
|
inlinenodiscard |
Return true if this reference entry has been soft-removed in the given graph.
|
inlinenodiscard |
|
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.
|
inlinenodiscard |
|
inlinenodiscard |
|
inline |
|
inline |
|
inline |
|
inlinenodiscard |
Advance by offset.
|
inline |
Pre-increment (++id).
|
inline |
Post-increment (id++).
|
inlinenodiscard |
Retreat by offset.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinestaticnodiscard |
First valid id in a dense per-kind sequence.
| uint32_t BRepGraph_RefId::Typed< TheKind >::Index |
|
staticconstexpr |
|
staticconstexpr |