![]() |
ATLAS Offline Software
|
This class provides a encapsulation of a GUID/UUID/CLSID/IID data structure (128 bit number). More...
#include <Guid.h>
Public Types | |
| enum | GuidGenMethod { GuidGenDefault, GuidGenRandom, GuidGenByTime } |
Public Member Functions | |
| constexpr | Guid () |
| Standard constructor. More... | |
| Guid (bool assign) | |
| Standard constructor (With possible initialization) More... | |
| constexpr | Guid (std::string_view s) |
| Constructor for Guid from string_view. More... | |
| constexpr | Guid (const char *s) |
| Guid (const Guid &c)=default | |
| Copy constructor. More... | |
| Guid & | operator= (const Guid &c)=default |
| auto | operator (const Guid &) const =default |
| Magic spaceship operator. More... | |
| bool | operator== (const Guid &) const =default |
| bool | operator== (std::string_view str) const |
| constexpr void | toString (std::span< char, 36 > buf, bool uppercase=true) const noexcept |
| Automatic conversion to string representation. More... | |
| constexpr std::string | toString (bool uppercase=true) const |
| constexpr Guid & | fromString (std::string_view s) |
| Automatic conversion from string representation. More... | |
| unsigned int | data1 () const |
| Allow accessors to member data. More... | |
| unsigned short | data2 () const |
| unsigned short | data3 () const |
| unsigned char | data4 (unsigned int i) const |
| void | setData1 (unsigned int data) |
| Allow modifiers for member data. More... | |
| void | setData2 (unsigned short data) |
| void | setData3 (unsigned short data) |
| void | setData4 (unsigned char data, unsigned int i) |
Static Public Member Functions | |
| static bool | isGuid (std::string_view) noexcept |
| static const Guid & | null () noexcept |
| NULL-Guid: static class method. More... | |
| static GuidGenMethod | initGuidGenMethod () |
| Checks for POOL_GUID_TIME or POOL_GUID_RANDOM env variables. More... | |
| static void | create (Guid &guid, GuidGenMethod method=GuidGenDefault) |
| Create a new Guid default method is currently Random, can be changed by param, API or environment. More... | |
Static Public Attributes | |
| static const GuidGenMethod | m_guidGenMethod = Guid::initGuidGenMethod() |
Private Member Functions | |
| constexpr void | setToNull () noexcept |
Private Attributes | |
| unsigned int | m_data1 {} |
| unsigned short | m_data2 {} |
| unsigned short | m_data3 {} |
| std::array< unsigned char, 8 > | m_data4 {} |
Friends | |
| bool | operator== (std::string_view str, const Guid &rhs) |
| Equality operator. More... | |
| bool | operator!= (std::string_view str, const Guid &rhs) |
| Non-equality operator. More... | |
| std::ostream & | operator<< (std::ostream &os, const Guid &rhs) |
| Extraction operators. More... | |
This class provides a encapsulation of a GUID/UUID/CLSID/IID data structure (128 bit number).
| enum Guid::GuidGenMethod |
|
inlineconstexpr |
|
inlineexplicit |
|
inlineconstexpr |
|
static |
|
inline |
|
inline |
|
inline |
|
inline |
|
constexpr |
|
static |
|
default |
|
default |
| bool Guid::operator== | ( | std::string_view | str | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
|
constexprprivatenoexcept |
|
inlineconstexpr |
|
constexprnoexcept |
|
static |
1.8.18