Snapshot of a graph item identity and its freshness generation.
More...
#include <BRepGraph_VersionStamp.hxx>
|
| | BRepGraph_VersionStamp () |
| | Default constructor. Creates an invalid stamp (invalid UID, zero counters).
|
| |
| | BRepGraph_VersionStamp (const BRepGraph_UID &theUID, const uint32_t theMutationGen, const uint32_t theGeneration) |
| | Construct a node-domain stamp from components.
|
| |
| | BRepGraph_VersionStamp (const BRepGraph_RefUID &theRefUID, const uint32_t theMutationGen, const uint32_t theGeneration) |
| | Construct a reference-domain stamp from components.
|
| |
| bool | IsValid () const |
| | Check if the stamp has a valid identity in its domain.
|
| |
| bool | IsNodeStamp () const |
| | True when this is a definition-node-domain stamp.
|
| |
| bool | IsRefStamp () const |
| | True when this is a reference-domain stamp.
|
| |
| BRepGraph_ItemUID | ItemUID () const |
| | Return the active generic item identity.
|
| |
| bool | operator== (const BRepGraph_VersionStamp &theOther) const |
| | Full equality: same domain, UID, OwnGen, and Generation. Two invalid stamps are equal.
|
| |
| bool | operator!= (const BRepGraph_VersionStamp &theOther) const |
| |
| bool | IsSameItem (const BRepGraph_VersionStamp &theOther) const |
| | Check if two stamps refer to the same graph item regardless of version. Compares active UID only, ignoring OwnGen and Generation.
|
| |
| Standard_GUID | ToGUID (const Standard_GUID &theGraphGUID) const |
| | Derive a deterministic Standard_GUID from this stamp. The graph GUID is incorporated into the hash, making per-node GUIDs globally unique across different graph instances. One-way: cannot reconstruct stamp fields from the resulting GUID.
|
| |
| size_t | HashValue () const |
| | Compute hash value consistent with operator==.
|
| |
Snapshot of a graph item identity and its freshness generation.
Combines a persistent node or reference UID with OwnGen (own-data mutation counter) and graph Generation (BRepGraph::Clear() cycle). It is intended for custom cache and layer freshness checks, not as a separate topology identity model.
Usage pattern:
STL input iterator that wraps an OCCT More()/Next() iterator.
Definition NCollection_ForwardRange.hxx:142
Snapshot of a graph item identity and its freshness generation.
Definition BRepGraph_VersionStamp.hxx:39
◆ Domain
Identity domain encoded in this stamp.
| Enumerator |
|---|
| None | |
| Node | |
| Reference | |
◆ BRepGraph_VersionStamp() [1/3]
| BRepGraph_VersionStamp::BRepGraph_VersionStamp |
( |
| ) |
|
|
inline |
Default constructor. Creates an invalid stamp (invalid UID, zero counters).
◆ BRepGraph_VersionStamp() [2/3]
Construct a node-domain stamp from components.
- Parameters
-
| [in] | theUID | persistent definition-node identity |
| [in] | theMutationGen | OwnGen counter (own-data mutation counter) |
| [in] | theGeneration | graph BRepGraph::Clear() generation |
◆ BRepGraph_VersionStamp() [3/3]
Construct a reference-domain stamp from components.
- Parameters
-
| [in] | theRefUID | persistent reference identity |
| [in] | theMutationGen | OwnGen counter (own-data mutation counter) |
| [in] | theGeneration | graph BRepGraph::Clear() generation |
◆ HashValue()
| size_t BRepGraph_VersionStamp::HashValue |
( |
| ) |
const |
Compute hash value consistent with operator==.
- Returns
- hash combining active UID, domain, OwnGen, and Generation
◆ IsNodeStamp()
| bool BRepGraph_VersionStamp::IsNodeStamp |
( |
| ) |
const |
|
inline |
True when this is a definition-node-domain stamp.
◆ IsRefStamp()
| bool BRepGraph_VersionStamp::IsRefStamp |
( |
| ) |
const |
|
inline |
True when this is a reference-domain stamp.
◆ IsSameItem()
Check if two stamps refer to the same graph item regardless of version. Compares active UID only, ignoring OwnGen and Generation.
- Parameters
-
| [in] | theOther | stamp to compare with |
- Returns
- true if both stamps have the same domain and UID
◆ IsValid()
| bool BRepGraph_VersionStamp::IsValid |
( |
| ) |
const |
|
inline |
Check if the stamp has a valid identity in its domain.
◆ ItemUID()
Return the active generic item identity.
◆ operator!=()
◆ operator==()
Full equality: same domain, UID, OwnGen, and Generation. Two invalid stamps are equal.
◆ ToGUID()
Derive a deterministic Standard_GUID from this stamp. The graph GUID is incorporated into the hash, making per-node GUIDs globally unique across different graph instances. One-way: cannot reconstruct stamp fields from the resulting GUID.
- Parameters
-
| [in] | theGraphGUID | the owning graph's identity GUID |
- Returns
- deterministic Standard_GUID derived from stamp + graph GUID
◆ myDomain
| Domain BRepGraph_VersionStamp::myDomain |
◆ myGeneration
| uint32_t BRepGraph_VersionStamp::myGeneration |
◆ myMutationGen
| uint32_t BRepGraph_VersionStamp::myMutationGen |
OwnGen counter at snapshot time.
◆ myNodeUID
Definition-node identity for node-domain stamps.
◆ myRefUID
Reference-entry identity for reference-domain stamps.
The documentation for this struct was generated from the following file: