|
RAVENNAKIT
|
A class which represents a unique identifier. More...
#include <id.hpp>
Classes | |
| class | Generator |
Public Member Functions | |
| Id ()=default | |
| Id (const uint64_t int_id) | |
| Constructs an id from an integer value. | |
| Id (const Id &other)=default | |
| Id & | operator= (const Id &other)=default |
| Id (Id &&other) noexcept=default | |
| Id & | operator= (Id &&other) noexcept=default |
| bool | is_valid () const noexcept |
| uint64_t | value () const |
| std::string | to_string () const |
| bool | operator== (const uint64_t value) const |
Static Public Member Functions | |
| static Id | get_next_process_wide_unique_id () noexcept |
| Returns the next id from a process-wide, global generator. | |
Friends | |
| bool | operator== (const Id &lhs, const Id &rhs) |
| bool | operator!= (const Id &lhs, const Id &rhs) |
A class which represents a unique identifier.
How unique the identifier is depends on how this class is used. The id itself is a uint64_t.
|
default |
|
inlineexplicit |
|
default |
|
defaultnoexcept |
|
inlinestaticnoexcept |
|
inlinenodiscardnoexcept |
|
inline |
|
inlinenodiscard |
|
inlinenodiscard |