![]() |
Open CASCADE Technology Reference Manual 8.0.0
|
Read-only view for persistent unique 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_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. | |
| 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. | |
| 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. | |
| bool | IsStale (const BRepGraph_VersionStamp &theStamp) const |
| Check if a previously-taken stamp is stale. A stamp is stale when the stamped node or reference has been mutated, removed, or the graph was rebuilt since the stamp was taken. | |
Read-only view for persistent unique 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 resolution. Obtained via BRepGraph::UIDs().
| uint32_t BRepGraph::UIDsView::Generation | ( | ) | const |
Return the current generation counter (incremented on each BRepGraph::Clear()).
| const Standard_GUID & BRepGraph::UIDsView::GraphGUID | ( | ) | const |
Return the graph-level identity GUID. Generated randomly at BRepGraph::Clear() time; changes on each rebuild.
| bool BRepGraph::UIDsView::Has | ( | const BRepGraph_RefUID & | theUID | ) | const |
Check if a RefUID is valid and exists in this graph generation.
| [in] | theUID | unique reference identifier to check |
| bool BRepGraph::UIDsView::Has | ( | const BRepGraph_UID & | theUID | ) | const |
Check if a UID is valid and exists in this graph generation.
| [in] | theUID | unique identifier to check |
| bool BRepGraph::UIDsView::IsStale | ( | const BRepGraph_VersionStamp & | theStamp | ) | const |
Check if a previously-taken stamp is stale. A stamp is stale when the stamped node or reference has been mutated, removed, or the graph was rebuilt since the stamp was taken.
| [in] | theStamp | version stamp to check |
| BRepGraph_NodeId BRepGraph::UIDsView::NodeIdFrom | ( | const BRepGraph_UID & | theUID | ) | const |
Resolve a UID back to a NodeId using the internal reverse index.
| [in] | theUID | unique identifier to resolve |
| BRepGraph_UID BRepGraph::UIDsView::Of | ( | const BRepGraph_NodeId | theNode | ) | const |
Return the UID assigned to a node.
| [in] | theNode | node identifier |
| BRepGraph_RefUID BRepGraph::UIDsView::Of | ( | const BRepGraph_RefId | theRefId | ) | const |
Return the RefUID assigned to a reference.
| [in] | theRefId | reference identifier |
| BRepGraph_RefId BRepGraph::UIDsView::RefIdFrom | ( | const BRepGraph_RefUID & | theUID | ) | const |
Resolve a RefUID back to a RefId using the internal reverse index.
| [in] | theUID | unique reference identifier to resolve |
| BRepGraph_VersionStamp BRepGraph::UIDsView::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.
| [in] | theNode | node identifier |
| BRepGraph_VersionStamp BRepGraph::UIDsView::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.
| [in] | theRefId | reference identifier |