GA::kit v0.3
G&A's in-house C++ application framework
Loading...
Searching...
No Matches
Guid Class Reference

#include <crossguid.hpp>

Public Member Functions

 Guid (const std::array< unsigned char, 16 > &bytes)
 
 Guid (std::array< unsigned char, 16 > &&bytes)
 
 Guid (const std::string &fromString)
 
 Guid ()
 
 Guid (const Guid &other)=default
 
Guidoperator= (const Guid &other)=default
 
 Guid (Guid &&other)=default
 
Guidoperator= (Guid &&other)=default
 
bool operator== (const Guid &other) const
 
bool operator!= (const Guid &other) const
 
std::string str () const
 
 operator std::string () const
 
const std::array< unsigned char, 16 > & bytes () const
 
void swap (Guid &other)
 
bool isValid () const
 

Friends

std::ostream & operator<< (std::ostream &s, const Guid &guid)
 
bool operator< (const Guid &lhs, const Guid &rhs)
 

Constructor & Destructor Documentation

◆ Guid() [1/6]

Guid::Guid ( const std::array< unsigned char, 16 > &  bytes)
explicit

◆ Guid() [2/6]

Guid::Guid ( std::array< unsigned char, 16 > &&  bytes)
explicit

◆ Guid() [3/6]

Guid::Guid ( const std::string &  fromString)
explicit

◆ Guid() [4/6]

Guid::Guid ( )

◆ Guid() [5/6]

Guid::Guid ( const Guid other)
default

◆ Guid() [6/6]

Guid::Guid ( Guid &&  other)
default

Member Function Documentation

◆ bytes()

const std::array< unsigned char, 16 > & Guid::bytes ( ) const

◆ isValid()

bool Guid::isValid ( ) const

◆ operator std::string()

Guid::operator std::string ( ) const

◆ operator!=()

bool Guid::operator!= ( const Guid other) const

◆ operator=() [1/2]

Guid & Guid::operator= ( const Guid other)
default

◆ operator=() [2/2]

Guid & Guid::operator= ( Guid &&  other)
default

◆ operator==()

bool Guid::operator== ( const Guid other) const

◆ str()

std::string Guid::str ( ) const

◆ swap()

void Guid::swap ( Guid other)

Friends And Related Function Documentation

◆ operator<

bool operator< ( const Guid lhs,
const Guid rhs 
)
friend

◆ operator<<

std::ostream & operator<< ( std::ostream &  s,
const Guid guid 
)
friend

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