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

Session-local identity of a reference entry. Mirrors occtl_ref_id_t. More...

#include <topo.hpp>

Public Member Functions

 RefId (const ::occtl_ref_id_t theId) noexcept
 Wraps an existing C value type (zero-cost).
 
::occtl_ref_id_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 ID is not the all-zero sentinel.
 
bool operator== (const RefId &theOther) const noexcept
 Bitwise equality.
 
bool operator!= (const RefId &theOther) const noexcept
 Bitwise inequality.
 

Static Public Member Functions

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

Detailed Description

Session-local identity of a reference entry. Mirrors occtl_ref_id_t.

Invalidated by graph compaction together with NodeIds. The all-zero value (OCCTL_REF_ID_INVALID) is the invalid sentinel.


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