51 constexpr bool empty()
const {
return raw[0] == 0 && raw[1] == 0 && raw[2] == 0 && raw[3] == 0; }
65 void copyTo(
Byte* buffer)
const {
memcpy(buffer, &raw[0],
sizeof(raw[0]) * 4); }
77 return lhs.raw[0] == rhs.raw[0] && lhs.raw[1] == rhs.raw[1] && lhs.raw[2] == rhs.raw[2] && lhs.raw[3] == rhs.raw[3];
84 friend constexpr bool operator!=(
const UUID& lhs,
const UUID& rhs)
noexcept {
return !(lhs == rhs); }
91 return lhs.raw[0] < rhs.raw[0] && lhs.raw[1] < rhs.raw[1] && lhs.raw[2] < rhs.raw[2] && lhs.raw[3] < rhs.raw[3];
98 friend constexpr bool operator>(
const UUID& lhs,
const UUID& rhs)
noexcept {
return rhs < lhs; }
#define CE_SCRIPT_EXPORT(...)
The CE_SCRIPT_EXPORT macro marks a class or method as exportable and available in scripting environme...
Definition Macros.hpp:247
A generator represents a coroutine type that produces a sequence of values of type T,...
Definition Generator.hpp:50
Definition Application.hpp:19
Byte
Definition DataTypes.hpp:40
StringView toString(Button button) noexcept
Returns a string representation for the given button
std::uint32_t UInt32
Definition DataTypes.hpp:23
constexpr size_t hash(const T &v)
Generates a hash for the provided type.
Definition Hash.hpp:25
Represents a universally unique identifier (UUID).
Definition UUID.hpp:27
friend constexpr bool operator<=(const UUID &lhs, const UUID &rhs) noexcept
Compares two UUID objects for ordering.
Definition UUID.hpp:105
friend String toString(const UUID &uuid)
Converts the UUID into its string representation.
Definition UUID.hpp:115
friend std::ostream & operator<<(std::ostream &os, const UUID &uuid)
Prints a string representation of a UUID into a standard output stream.
friend constexpr bool operator>=(const UUID &lhs, const UUID &rhs) noexcept
Compares two UUID objects for ordering.
Definition UUID.hpp:112
UInt32 raw[4]
The UUID raw representation.
Definition UUID.hpp:30
void copyFrom(const Byte *buffer)
Copies the UUID from a buffer.
Definition UUID.hpp:69
friend constexpr bool operator>(const UUID &lhs, const UUID &rhs) noexcept
Compares two UUID objects for ordering.
Definition UUID.hpp:98
friend constexpr bool operator<(const UUID &lhs, const UUID &rhs) noexcept
Compares two UUID objects for ordering.
Definition UUID.hpp:90
friend constexpr bool operator==(const UUID &lhs, const UUID &rhs) noexcept
Compares two UUID objects for equality.
Definition UUID.hpp:76
friend constexpr bool operator!=(const UUID &lhs, const UUID &rhs) noexcept
Compares two UUID objects for inequality.
Definition UUID.hpp:84