Universally unique identifier (UUID).
More...
#include <uuid.h>
Universally unique identifier (UUID).
Minimalistic implementation that mimics JDK java.util.UUID.
◆ uuid() [1/2]
◆ uuid() [2/2]
| ignite::uuid::uuid |
( |
std::int64_t | most, |
|
|
std::int64_t | least ) |
|
inlineconstexprnoexcept |
Constructor.
- Parameters
-
| most | Most significant bits. |
| least | Least significant bits. |
◆ compare()
| int ignite::uuid::compare |
( |
const uuid & | other | ) |
const |
|
inlinenodiscardconstexprnoexcept |
compare to another value.
- Parameters
-
| other | Instance to compare to. |
- Returns
- Zero if equals, negative number if less, and positive if greater.
◆ get_least_significant_bits()
| std::int64_t ignite::uuid::get_least_significant_bits |
( |
| ) |
const |
|
inlinenodiscardconstexprnoexcept |
Returns the least significant 64 bits of this instance.
- Returns
- The least significant 64 bits of this instance.
◆ get_most_significant_bits()
| std::int64_t ignite::uuid::get_most_significant_bits |
( |
| ) |
const |
|
inlinenodiscardconstexprnoexcept |
Returns the most significant 64 bits of this instance.
- Returns
- The most significant 64 bits of this instance.
◆ random()
| uuid ignite::uuid::random |
( |
| ) |
|
|
staticnodiscard |
Make random UUID.
- Returns
- Randomly generated UUID instance.
◆ variant()
| std::int32_t ignite::uuid::variant |
( |
| ) |
const |
|
inlinenodiscardconstexprnoexcept |
The variant number associated with this instance. The variant number describes the layout of the uuid.
The variant number has the following meaning: 0 Reserved for NCS backward compatibility; 2 IETF RFC 4122 (Leach-Salz), used by this class; 6 Reserved, Microsoft Corporation backward compatibility; 7 Reserved for future definition.
- Returns
- The variant number of this instance.
◆ version()
| std::int32_t ignite::uuid::version |
( |
| ) |
const |
|
inlinenodiscardconstexprnoexcept |
The version number associated with this instance. The version number describes how this uuid was generated.
The version number has the following meaning: 1 Time-based UUID; 2 DCE security UUID; 3 Name-based UUID; 4 Randomly generated UUID.
- Returns
- The version number of this instance.
The documentation for this class was generated from the following files:
- ignite/common/uuid.h
- ignite/common/uuid.cpp