OCCT-Light 0.1
C ABI and C++ veneer for multi-language CAD workflows
Loading...
Searching...
No Matches
occtl::UID Class Reference

Persistent identity surviving node removal and graph compaction. Mirrors occtl_uid_t. More...

#include <uid.hpp>

Public Member Functions

 UID (const ::occtl_uid_t theUid) noexcept
 Wraps an existing C value type (zero-cost).
 
::occtl_uid_t get () const noexcept
 Borrows-it view of the underlying C value type, for direct ABI calls.
 
bool is_valid () const noexcept
 True when the UID is not the all-zero sentinel.
 
bool operator== (const UID &theOther) const noexcept
 Bitwise equality.
 
bool operator!= (const UID &theOther) const noexcept
 Bitwise inequality.
 

Static Public Member Functions

static UID invalid () noexcept
 Returns the invalid sentinel (all-zero bits).
 

Detailed Description

Persistent identity surviving node removal and graph compaction. Mirrors occtl_uid_t.

Use occtl::Graph::node_id_from_uid to resolve back to a NodeId. The all-zero value (OCCTL_UID_INVALID) is the invalid sentinel.


The documentation for this class was generated from the following file: