Mountain  1.0.0
Simple C++ 2D Game Framework
Mountain::Guid Class Referencefinal

Stands for Global Unique Identifier, it represents a unique ID that's used to link pointers during serialization and deserialization. More...

#include <guid.hpp>

Public Member Functions

uint32_t GetData1 () const
 
uint16_t GetData2 () const
 
uint16_t GetData3 () const
 
const std::array< uint8_t, Data4Size > & GetData4 () const
 
bool_t operator== (const Guid &other) const
 Compares 2 Guid. More...
 
bool_t operator!= (const Guid &other) const
 Compares 2 Guid. More...
 
 operator std::string () const
 Converts a Guid to a string representation.
 

Static Public Member Functions

static constexpr Guid Empty ()
 Empty guid.
 
static Guid New ()
 Creates a new Guid. More...
 
static Guid FromString (const char_t *str)
 Parses a Guid from a string. More...
 

Friends

struct std::hash< Guid >
 

Detailed Description

Stands for Global Unique Identifier, it represents a unique ID that's used to link pointers during serialization and deserialization.

Definition at line 17 of file guid.hpp.

Member Function Documentation

◆ FromString()

static Guid Mountain::Guid::FromString ( const char_t *  str)
static

Parses a Guid from a string.

Parameters
strString
Returns
Guid

◆ New()

static Guid Mountain::Guid::New ( )
static

Creates a new Guid.

Returns
New guid

◆ operator!=()

bool_t Mountain::Guid::operator!= ( const Guid other) const

Compares 2 Guid.

Parameters
otherOther guid
Returns
Whether the Guid are different

◆ operator==()

bool_t Mountain::Guid::operator== ( const Guid other) const

Compares 2 Guid.

Parameters
otherOther guid
Returns
Whether the Guid are equal

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