Snapshot of an entity/ref identity and version at a point in time.
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 an entity-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 | IsEntityStamp () const |
| | True when this is an entity-domain stamp.
|
| |
| bool | IsRefStamp () const |
| | True when this is a reference-domain stamp.
|
| |
| 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 | IsSameNode (const BRepGraph_VersionStamp &theOther) const |
| | Check if two stamps refer to the same entity/reference 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 an entity/ref identity and version at a point in time.
Combines a persistent UID (entity or reference entry) with OwnGen (own-data version counter) and graph Generation (BRepGraph::Clear() cycle). Computed on demand via BRepGraph::UIDs().StampOf().
Usage pattern:
STL input iterator that wraps an OCCT More()/Next() iterator.
Definition NCollection_ForwardRange.hxx:142
Snapshot of an entity/ref identity and version at a point in time.
Definition BRepGraph_VersionStamp.hxx:38
◆ Domain
Identity domain encoded in this stamp.
| Enumerator |
|---|
| None | |
| Entity | |
| Ref | |
◆ BRepGraph_VersionStamp() [1/3]
| BRepGraph_VersionStamp::BRepGraph_VersionStamp |
( |
| ) |
|
|
inline |
Default constructor. Creates an invalid stamp (invalid UID, zero counters).
◆ BRepGraph_VersionStamp() [2/3]
Construct an entity-domain stamp from components.
- Parameters
-
| [in] | theUID | persistent entity 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 |
|
inline |
Compute hash value consistent with operator==.
- Returns
- hash combining active UID, domain, OwnGen, and Generation
◆ IsEntityStamp()
| bool BRepGraph_VersionStamp::IsEntityStamp |
( |
| ) |
const |
|
inline |
True when this is an entity-domain stamp.
◆ IsRefStamp()
| bool BRepGraph_VersionStamp::IsRefStamp |
( |
| ) |
const |
|
inline |
True when this is a reference-domain stamp.
◆ IsSameNode()
Check if two stamps refer to the same entity/reference 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.
◆ 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 (maps to BaseDef::OwnGen / BaseRef::OwnGen).
◆ myRefUID
Reference identity for ref-domain stamps.
◆ myUID
Entity identity for entity-domain stamps.
The documentation for this struct was generated from the following file: