|
FuncDoodle
|
Represents a single 16-byte opaque uuid-like unique identifier. More...
#include <UUID.h>
Classes | |
| struct | Hash |
| Hash functor for using UUID as an associative-container key. More... | |
Public Member Functions | |
| UUID (std::array< unsigned char, 16 > bytes) | |
| Constructs a UUID from raw bytes. | |
| UUID () | |
| std::array< unsigned char, 16 > | Bytes () |
| Returns the raw 16-byte UUID payload. | |
| const char * | ToString () const |
| Converts the UUID into its string form. | |
| bool | operator== (const UUID &other) const |
| Compares two UUID values for equality. | |
| bool | operator!= (const UUID &other) const |
| Compares two UUID values for inequality. | |
| bool | operator< (const UUID &other) const |
| Orders UUID values lexicographically by raw bytes. | |
| bool | operator> (const UUID &other) const |
| Orders UUID values lexicographically by raw bytes. | |
| bool | operator<= (const UUID &other) const |
| Returns true when this UUID sorts before or equal to another. | |
| bool | operator>= (const UUID &other) const |
| Returns true when this UUID sorts after or equal to another. | |
| UUID | operator+ (const UUID &other) const |
| Combines two UUID values with byte-wise XOR. | |
| UUID | operator- (const UUID &other) const |
| Subtracts UUID bytes pairwise. | |
Static Public Member Functions | |
| static UUID | Gen () |
| Generates a new UUID value. | |
| static UUID | FromString (const char *str) |
| Parses a UUID from a string representation. | |
Private Attributes | |
| std::array< unsigned char, 16 > | m_Bytes |
Friends | |
| std::ostream & | operator<< (std::ostream &os, const UUID &obj) |
| Streams the UUID in its string form. | |
Represents a single 16-byte opaque uuid-like unique identifier.
|
inline |
Constructs a UUID from raw bytes.
|
inline |
|
inline |
Returns the raw 16-byte UUID payload.
|
static |
Parses a UUID from a string representation.
| bool FuncDoodle::UUID::operator!= | ( | const UUID & | other | ) | const |
Compares two UUID values for inequality.
Combines two UUID values with byte-wise XOR.
|
inline |
Orders UUID values lexicographically by raw bytes.
|
inline |
Returns true when this UUID sorts before or equal to another.
| bool FuncDoodle::UUID::operator== | ( | const UUID & | other | ) | const |
Compares two UUID values for equality.
|
inline |
Orders UUID values lexicographically by raw bytes.
|
inline |
Returns true when this UUID sorts after or equal to another.
|
nodiscard |
Converts the UUID into its string form.
|
friend |
Streams the UUID in its string form.
|
private |