![]() |
Open CASCADE Technology Reference Manual 8.0.1
|
Unique definition-node identifier within a BRepGraph. More...
#include <BRepGraph_UID.hxx>
Public Member Functions | |
| BRepGraph_UID ()=default | |
| Default: invalid UID (counter = 0 is the invalid sentinel). | |
| BRepGraph_UID (const BRepGraph_NodeId::Kind theKind, const uint32_t theCounter) | |
| Construct a valid UID. Called internally by BRepGraphInc_Storage::AllocateNodeUID(). | |
| bool | IsValid () const |
| True if this UID has a valid kind and a non-zero counter. | |
| bool | IsTopology () const |
| bool | IsAssembly () const |
| size_t | HashValue () const noexcept |
| Hash value compatible with operator==. | |
Static Public Member Functions | |
| static BRepGraph_UID | Invalid () |
| Factory: returns an explicitly invalid UID. | |
Data Fields | |
| BRepGraph_NodeId::Kind | Kind = BRepGraph_NodeId::Kind::Solid |
| uint32_t | Counter = 0 |
Unique definition-node identifier within a BRepGraph.
Identity = (Kind, Counter). Two nodes of different kinds may share a counter value but their UIDs are distinct. Within one kind, counter values never repeat (monotonic, never resets).
Trivially copyable, cheap to pass by value.
|
default |
Default: invalid UID (counter = 0 is the invalid sentinel).
|
inline |
Construct a valid UID. Called internally by BRepGraphInc_Storage::AllocateNodeUID().
|
inlinenodiscardnoexcept |
Hash value compatible with operator==.
|
inlinestatic |
Factory: returns an explicitly invalid UID.
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
True if this UID has a valid kind and a non-zero counter.
| uint32_t BRepGraph_UID::Counter = 0 |
| BRepGraph_NodeId::Kind BRepGraph_UID::Kind = BRepGraph_NodeId::Kind::Solid |