Struct NodeID¶
Defined in File NodeID.hpp
Nested Relationships¶
Nested Types¶
Struct Documentation¶
-
struct NodeID¶
NodeID is an 48 bit identifier for a Node given a NodeManager. If the Node is a Literal, The 48 bits consist of a LiteralID (42 bits) and a LiteralType (6 bits).
Public Types
-
using underlying_type = uint64_t¶
Public Functions
-
constexpr NodeID() = default¶
-
inline explicit constexpr NodeID(underlying_type const underlying) noexcept¶
Constructs a LiteralID from a single unsigned integer.
- Parameters:
value – literal ID. MUST be smaller than 2^48. Bounds are not checked.
-
inline constexpr NodeID(LiteralID const literal_id, LiteralType const literal_type) noexcept¶
-
inline constexpr LiteralID literal_id() const noexcept¶
Get LiteralID. This method does not check if the NodeID actually represents a literal.
- Returns:
-
inline constexpr LiteralType literal_type() const noexcept¶
Get LiteralType. This method does not check if the NodeID actually represents a literal.
- Returns:
-
inline constexpr underlying_type to_underlying() const noexcept¶
-
inline constexpr bool null() const noexcept¶
-
inline explicit operator underlying_type() const noexcept¶
-
using underlying_type = uint64_t¶