![]() |
Open CASCADE Technology Reference Manual 8.0.2
|
Read-only view for persistent node and reference identifiers. More...
#include <BRepGraph_UIDsView.hxx>
Public Member Functions | |
| BRepGraph_UID | Of (const BRepGraph_NodeId theNode) const |
| Return the UID assigned to a node. | |
| BRepGraph_RefUID | Of (const BRepGraph_RefId theRefId) const |
| Return the RefUID assigned to a reference. | |
| BRepGraph_ItemUID | Of (const BRepGraph_ItemId theItem) const |
| Return the persistent UID assigned to a generic graph item. | |
| BRepGraph_NodeId | NodeIdFrom (const BRepGraph_UID &theUID) const |
| Resolve a UID back to a NodeId using the internal reverse index. | |
| BRepGraph_RefId | RefIdFrom (const BRepGraph_RefUID &theUID) const |
| Resolve a RefUID back to a RefId using the internal reverse index. | |
| BRepGraph_ItemId | ItemIdFrom (const BRepGraph_ItemUID &theUID) const |
| Resolve a generic item UID back to a transient item id. | |
| bool | Has (const BRepGraph_UID &theUID) const |
| Check if a UID is valid and exists in this graph generation. | |
| bool | Has (const BRepGraph_RefUID &theUID) const |
| Check if a RefUID is valid and exists in this graph generation. | |
| bool | Has (const BRepGraph_ItemUID &theUID) const |
| Check if a generic item UID exists in this graph generation. | |
| uint32_t | Generation () const |
| Return the current generation counter (incremented on each BRepGraph::Clear()). | |
| const Standard_GUID & | GraphGUID () const |
| Return the graph-level identity GUID. Generated randomly at BRepGraph::Clear() time; changes on each rebuild. | |
| BRepGraph_VersionStamp | StampOf (const BRepGraph_NodeId theNode) const |
| Produce a version stamp for the given node. Combines the node's UID with its current OwnGen and graph Generation. | |
| BRepGraph_VersionStamp | StampOf (const BRepGraph_RefId theRefId) const |
| Produce a version stamp for the given reference. Combines the reference's RefUID with its current OwnGen and graph Generation. | |
| BRepGraph_VersionStamp | StampOf (const BRepGraph_RepId theRepId) const |
| Produce a version stamp for an owner-scoped use record. Use records have no durable UID or mutation generation; the stamp uses the owning definition-node UID, OwnGen, and graph Generation. | |
| BRepGraph_VersionStamp | StampOf (const BRepGraph_ItemId theItem) const |
| Produce a version stamp for the given definition-node or reference-entry item. | |
| bool | IsStale (const BRepGraph_VersionStamp &theStamp) const |
| Check if a previously-taken stamp is stale. A stamp is stale when the stamped item has been mutated, removed, or the graph was rebuilt since the stamp was taken. | |
Read-only view for persistent node and reference identifiers.
UIDs are (Kind, Counter) pairs that persist across graph mutations (Compact, node removal). Counters are monotonic and independent of vector indices. Clear() starts a new graph generation and refreshes the graph GUID, enabling stale-reference detection when a graph is rebuilt. Provides bidirectional NodeId/UID and RefId/RefUID resolution.
Version stamps are exposed here for graph-owned cache and layer freshness checks. They reuse node/reference UID identity and do not introduce a persistent representation identity.
|
nodiscard |
Return the current generation counter (incremented on each BRepGraph::Clear()).
|
nodiscard |
Return the graph-level identity GUID. Generated randomly at BRepGraph::Clear() time; changes on each rebuild.
|
nodiscard |
Check if a generic item UID exists in this graph generation.
|
nodiscard |
Check if a RefUID is valid and exists in this graph generation.
| [in] | theUID | unique reference identifier to check |
|
nodiscard |
Check if a UID is valid and exists in this graph generation.
| [in] | theUID | unique identifier to check |
|
nodiscard |
Check if a previously-taken stamp is stale. A stamp is stale when the stamped item has been mutated, removed, or the graph was rebuilt since the stamp was taken.
| [in] | theStamp | version stamp to check |
|
nodiscard |
Resolve a generic item UID back to a transient item id.
| [in] | theUID | durable node/reference item identity |
|
nodiscard |
Resolve a UID back to a NodeId using the internal reverse index.
| [in] | theUID | unique identifier to resolve |
|
nodiscard |
Return the persistent UID assigned to a generic graph item.
| [in] | theItem | definition-node or reference-entry item id |
|
nodiscard |
Return the UID assigned to a node.
| [in] | theNode | node identifier |
|
nodiscard |
Return the RefUID assigned to a reference.
| [in] | theRefId | reference identifier |
|
nodiscard |
Resolve a RefUID back to a RefId using the internal reverse index.
| [in] | theUID | unique reference identifier to resolve |
|
nodiscard |
Produce a version stamp for the given definition-node or reference-entry item.
|
nodiscard |
Produce a version stamp for the given node. Combines the node's UID with its current OwnGen and graph Generation.
| [in] | theNode | node identifier |
|
nodiscard |
Produce a version stamp for the given reference. Combines the reference's RefUID with its current OwnGen and graph Generation.
| [in] | theRefId | reference identifier |
|
nodiscard |
Produce a version stamp for an owner-scoped use record. Use records have no durable UID or mutation generation; the stamp uses the owning definition-node UID, OwnGen, and graph Generation.
| [in] | theRepId | use-record identifier |