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

Session-local identity of a graph node. Mirrors occtl_node_id_t. More...

#include <topo.hpp>

Public Member Functions

 NodeId (const ::occtl_node_id_t theId) noexcept
 Wraps an existing C value type (zero-cost).
 
::occtl_node_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 NodeId &theOther) const noexcept
 Bitwise equality.
 
bool operator!= (const NodeId &theOther) const noexcept
 Bitwise inequality.
 

Static Public Member Functions

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

Detailed Description

Session-local identity of a graph node. Mirrors occtl_node_id_t.

The all-zero value is the invalid sentinel (OCCTL_NODE_ID_INVALID). Check with is_valid before use. Kind queries go through Graph methods which internally convert to OCCT entity types via TopoMath.hxx.


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