Contains a 128bit randomly generated UUID, along with helper functions.
More...
#include <UUID.hpp>
|
| UUID () |
| Constructor.
|
|
| UUID (UUID &&) noexcept |
| Move constructor.
|
|
UUID & | operator= (UUID &&) noexcept |
| Move assignment operator.
|
|
| UUID (const UUID &) noexcept |
| Copy constructor.
|
|
UUID & | operator= (const UUID &) noexcept |
| Copy assignment operator.
|
|
| ~UUID () noexcept |
| Destructor.
|
|
std::size_t | hash () noexcept |
| Get the UUID as a hash.
|
|
const std::string & | str () const noexcept |
| Get the UUID as a string.
|
|
bool | operator== (const UUID &rhs) noexcept |
| Equality comparison.
|
|
bool | operator!= (const UUID &rhs) noexcept |
| Inequality comparison.
|
|
|
std::array< unsigned char, 16 > | m_uuid |
| UUID.
|
|
std::string | m_str |
| String representation.
|
|
Contains a 128bit randomly generated UUID, along with helper functions.
Definition at line 20 of file UUID.hpp.
◆ UUID() [1/3]
Constructor.
Definition at line 16 of file UUID.cpp.
◆ UUID() [2/3]
galaxy::UUID::UUID |
( |
UUID && | g | ) |
|
|
noexcept |
Move constructor.
Definition at line 45 of file UUID.cpp.
◆ UUID() [3/3]
galaxy::UUID::UUID |
( |
const UUID & | g | ) |
|
|
noexcept |
Copy constructor.
Definition at line 62 of file UUID.cpp.
◆ ~UUID()
Destructor.
Definition at line 79 of file UUID.cpp.
◆ operator=() [1/2]
UUID & galaxy::UUID::operator= |
( |
UUID && | g | ) |
|
|
noexcept |
Move assignment operator.
Definition at line 51 of file UUID.cpp.
◆ operator=() [2/2]
UUID & galaxy::UUID::operator= |
( |
const UUID & | g | ) |
|
|
noexcept |
Copy assignment operator.
Definition at line 68 of file UUID.cpp.
◆ hash()
std::size_t galaxy::UUID::hash |
( |
| ) |
|
|
nodiscardnoexcept |
Get the UUID as a hash.
- Returns
- Hash integer.
Definition at line 83 of file UUID.cpp.
◆ str()
const std::string & galaxy::UUID::str |
( |
| ) |
const |
|
nodiscardnoexcept |
Get the UUID as a string.
- Returns
- Const string reference.
Definition at line 93 of file UUID.cpp.
◆ operator==()
bool galaxy::UUID::operator== |
( |
const UUID & | rhs | ) |
|
|
nodiscardnoexcept |
Equality comparison.
- Parameters
-
rhs | Right-hand side comparison. |
- Returns
- True if equal.
Definition at line 98 of file UUID.cpp.
◆ operator!=()
bool galaxy::UUID::operator!= |
( |
const UUID & | rhs | ) |
|
|
nodiscardnoexcept |
Inequality comparison.
- Parameters
-
rhs | Right-hand side comparison. |
- Returns
- True if NOT equal.
Definition at line 103 of file UUID.cpp.
◆ m_uuid
std::array<unsigned char, 16> galaxy::UUID::m_uuid |
|
private |
◆ m_str
std::string galaxy::UUID::m_str |
|
private |
String representation.
Definition at line 100 of file UUID.hpp.
The documentation for this class was generated from the following files: