Skip to main content

Guid Class

Representative of a Globally Unique Identifier. More...

Declaration

class helios::util::Guid { ... }

Private Constructors Index

Guid (uint64_t value) noexcept

Public Operators Index

constexpr booloperator== (const Guid &guid) const =default
constexpr booloperator!= (const Guid &guid) const =default

Public Member Functions Index

constexpr uint64_tvalue () const noexcept

Returns the raw 64-bit value of this Guid. More...

Private Member Attributes Index

uint64_tvalue_

Public Static Functions Index

static Guidgenerate () noexcept

Generates a new Guid. More...

Description

Representative of a Globally Unique Identifier.

Generating GUIDs with this class is considered thread-safe.

Definition at line 21 of file Guid.ixx.

Private Constructors

Guid()

helios::util::Guid::Guid (uint64_t value)
explicit noexcept

Definition at line 23 of file Guid.ixx.

Public Operators

operator!=()

bool helios::util::Guid::operator!= (const Guid & guid)
constexpr default

Definition at line 29 of file Guid.ixx.

operator==()

bool helios::util::Guid::operator== (const Guid & guid)
constexpr default

Definition at line 28 of file Guid.ixx.

Public Member Functions

value()

uint64_t helios::util::Guid::value ()
inline nodiscard constexpr noexcept

Returns the raw 64-bit value of this Guid.

Returns

The underlying uint64_t value representing this Guid.

Definition at line 46 of file Guid.ixx.

46 [[nodiscard]] constexpr uint64_t value() const noexcept {
47 return value_;
48 }

Reference value.

Referenced by value.

Private Member Attributes

value_

uint64_t helios::util::Guid::value_

Definition at line 24 of file Guid.ixx.

24 uint64_t value_;

Public Static Functions

generate()

Guid helios::util::Guid::generate ()
noexcept static

Generates a new Guid.

This function produces a new, unique Guid value. It is safe to call from multiple threads.

Returns

A newly generated `Guid` instance.

Definition at line 39 of file Guid.ixx.


The documentation for this class was generated from the following file:


Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.