Generic 64-bit handle providing base functionality for strongly-typed handles.
More...
#include <mochi_handle.h>
|
| using | ValueType = uint64_t |
| | Raw 64-bit identifier type.
|
Generic 64-bit handle providing base functionality for strongly-typed handles.
Definition at line 31 of file mochi_handle.h.
◆ ValueType
◆ Handle() [1/2]
| superdex::Handle::Handle |
( |
| ) |
|
|
default |
◆ Handle() [2/2]
Construct a handle from its raw 64-bit identifier.
- Parameters
-
| [in] | raw | The raw handle identifier. |
Definition at line 27 of file mochi_handle_inl.h.
◆ GetHash()
| uint64_t superdex::Handle::GetHash |
( |
| ) |
const |
|
inline |
Compute a hash of the handle for use in unordered containers.
- Returns
- The hash of the handle's raw identifier.
Definition at line 41 of file mochi_handle_inl.h.
◆ IsValid()
| bool superdex::Handle::IsValid |
( |
| ) |
const |
|
inline |
Check whether the handle is valid (i.e., its value is non-zero).
- Returns
- True if the handle is valid, false otherwise.
Definition at line 29 of file mochi_handle_inl.h.
◆ operator!=()
| bool superdex::Handle::operator!= |
( |
Handle const & | rhs | ) |
const |
|
inline |
◆ operator<()
| bool superdex::Handle::operator< |
( |
Handle const & | rhs | ) |
const |
|
inline |
◆ operator==()
| bool superdex::Handle::operator== |
( |
Handle const & | rhs | ) |
const |
|
inline |
◆ value
Raw 64-bit identifier.
Zero indicates an invalid handle.
Definition at line 35 of file mochi_handle.h.
The documentation for this struct was generated from the following files: