![]() |
Open CASCADE Technology Reference Manual 8.0.1
|
Durable BRepGraph item identity covering definition nodes and reference entries. More...
#include <BRepGraph_ItemUID.hxx>
Public Types | |
| enum class | Domain : uint8_t { None , Node , Reference } |
| Addressed persistent identity domain. More... | |
Public Member Functions | |
| BRepGraph_ItemUID ()=default | |
| Construct an invalid UID. | |
| bool | IsValid () const noexcept |
| Return true if this UID has a non-sentinel counter and a valid domain/kind pair. | |
| Domain | ItemDomain () const noexcept |
| Return the addressed identity domain. | |
| bool | IsNode () const noexcept |
| bool | IsReference () const noexcept |
| BRepGraph_NodeId::Kind | NodeKind () const noexcept |
| Return node kind. Valid only for node UIDs. | |
| BRepGraph_RefId::Kind | RefKind () const noexcept |
| Return reference kind. Valid only for reference UIDs. | |
| uint8_t | RawKind () const noexcept |
| Return item kind encoded in its own domain enum space. | |
| size_t | Counter () const noexcept |
| Return the graph-wide monotonic UID counter. | |
| size_t | HashValue () const noexcept |
| Compute a hash value compatible with operator==. | |
Static Public Member Functions | |
| static BRepGraph_ItemUID | Node (const BRepGraph_NodeId::Kind theKind, const size_t theCounter) |
| Construct a node UID. | |
| static BRepGraph_ItemUID | Reference (const BRepGraph_RefId::Kind theKind, const size_t theCounter) |
| Construct a reference UID. | |
| static BRepGraph_ItemUID | Invalid () |
| Return an invalid sentinel UID. | |
Durable BRepGraph item identity covering definition nodes and reference entries.
BRepGraph_ItemId is a transient structural address. BRepGraph_ItemUID is the persistent identity assigned at item creation and kept stable across compaction and vector reordering. Representation/use records are not addressed here because they do not have persisted identity.
|
strong |
|
default |
Construct an invalid UID.
|
inlinenoexcept |
Return the graph-wide monotonic UID counter.
|
inlinenoexcept |
Compute a hash value compatible with operator==.
|
inlinestatic |
Return an invalid sentinel UID.
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
Return true if this UID has a non-sentinel counter and a valid domain/kind pair.
|
inlinenoexcept |
Return the addressed identity domain.
|
inlinestatic |
Construct a node UID.
|
inlinenoexcept |
Return node kind. Valid only for node UIDs.
|
inlinenoexcept |
Return item kind encoded in its own domain enum space.
|
inlinestatic |
Construct a reference UID.
|
inlinenoexcept |
Return reference kind. Valid only for reference UIDs.