galaxy 1.0.0
Real-Time C++23 Game Programming Framework. Built on data-driven design principles and agile software engineering.
Loading...
Searching...
No Matches
galaxy::utils::Guid Class Referencefinal

Contains a 128bit randomly generated GUID, along with helper functions. More...

#include <Guid.hpp>

+ Collaboration diagram for galaxy::utils::Guid:

Public Member Functions

 Guid ()
 Constructor.
 
 Guid (Guid &&) noexcept
 Move constructor.
 
Guidoperator= (Guid &&) noexcept
 Move assignment operator.
 
 Guid (const Guid &) noexcept
 Copy constructor.
 
Guidoperator= (const Guid &) noexcept
 Copy assignment operator.
 
 ~Guid () noexcept
 Destructor.
 
const std::string & to_string () const noexcept
 Get the GUID as a string.
 
bool operator== (const Guid &rhs) noexcept
 Equality comparison.
 
bool operator!= (const Guid &rhs) noexcept
 Inequality comparison.
 

Private Attributes

std::string m_id
 Guid.
 

Detailed Description

Contains a 128bit randomly generated GUID, along with helper functions.

Definition at line 21 of file Guid.hpp.

Constructor & Destructor Documentation

◆ Guid() [1/3]

galaxy::utils::Guid::Guid ( )

Constructor.

Definition at line 20 of file Guid.cpp.

+ Here is the call graph for this function:

◆ Guid() [2/3]

galaxy::utils::Guid::Guid ( Guid && g)
noexcept

Move constructor.

Definition at line 43 of file Guid.cpp.

◆ Guid() [3/3]

galaxy::utils::Guid::Guid ( const Guid & g)
noexcept

Copy constructor.

Definition at line 58 of file Guid.cpp.

◆ ~Guid()

galaxy::utils::Guid::~Guid ( )
noexcept

Destructor.

Definition at line 73 of file Guid.cpp.

Member Function Documentation

◆ operator=() [1/2]

Guid & galaxy::utils::Guid::operator= ( Guid && g)
noexcept

Move assignment operator.

Definition at line 48 of file Guid.cpp.

◆ operator=() [2/2]

Guid & galaxy::utils::Guid::operator= ( const Guid & g)
noexcept

Copy assignment operator.

Definition at line 63 of file Guid.cpp.

◆ to_string()

const std::string & galaxy::utils::Guid::to_string ( ) const
nodiscardnoexcept

Get the GUID as a string.

Returns
Const string reference.

Definition at line 77 of file Guid.cpp.

+ Here is the caller graph for this function:

◆ operator==()

bool galaxy::utils::Guid::operator== ( const Guid & rhs)
nodiscardnoexcept

Equality comparison.

Parameters
rhsRight-hand side comparison.
Returns
True if equal.

Definition at line 82 of file Guid.cpp.

◆ operator!=()

bool galaxy::utils::Guid::operator!= ( const Guid & rhs)
nodiscardnoexcept

Inequality comparison.

Parameters
rhsRight-hand side comparison.
Returns
True if NOT equal.

Definition at line 87 of file Guid.cpp.

Member Data Documentation

◆ m_id

std::string galaxy::utils::Guid::m_id
private

Guid.

Definition at line 88 of file Guid.hpp.


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