![]() |
GridGain C++
|
Global universally unique identifier (GUID). More...
#include <guid.h>
Public Member Functions | |
Guid () | |
Default constructor. | |
Guid (int64_t most, int64_t least) | |
Constructor. More... | |
int64_t | GetMostSignificantBits () const |
Returns the most significant 64 bits of this instance. More... | |
int64_t | GetLeastSignificantBits () const |
Returns the least significant 64 bits of this instance. More... | |
int32_t | GetVersion () const |
The version number associated with this instance. More... | |
int32_t | GetVariant () const |
The variant number associated with this instance. More... | |
int32_t | GetHashCode () const |
Get hash code of this instance (used in serialization). More... | |
int64_t | Compare (const Guid &other) const |
Compare to another value. More... | |
Friends | |
bool IGNITE_IMPORT_EXPORT | operator== (const Guid &val1, const Guid &val2) |
Comparison operator override. More... | |
bool IGNITE_IMPORT_EXPORT | operator== (const Guid &val1, const Guid &val2) |
Comparison operator. More... | |
bool IGNITE_IMPORT_EXPORT | operator!= (const Guid &val1, const Guid &val2) |
Comparison operator. More... | |
bool IGNITE_IMPORT_EXPORT | operator< (const Guid &val1, const Guid &val2) |
Comparison operator. More... | |
bool IGNITE_IMPORT_EXPORT | operator<= (const Guid &val1, const Guid &val2) |
Comparison operator. More... | |
bool IGNITE_IMPORT_EXPORT | operator> (const Guid &val1, const Guid &val2) |
Comparison operator. More... | |
bool IGNITE_IMPORT_EXPORT | operator>= (const Guid &val1, const Guid &val2) |
Comparison operator. More... | |
Global universally unique identifier (GUID).
ignite::Guid::Guid | ( | int64_t | most, |
int64_t | least | ||
) |
Constructor.
most | Most significant bits. |
least | Least significant bits. |
int64_t ignite::Guid::Compare | ( | const Guid & | other | ) | const |
Compare to another value.
other | Instance to compare to. |
int32_t ignite::Guid::GetHashCode | ( | ) | const |
Get hash code of this instance (used in serialization).
int64_t ignite::Guid::GetLeastSignificantBits | ( | ) | const |
Returns the least significant 64 bits of this instance.
int64_t ignite::Guid::GetMostSignificantBits | ( | ) | const |
Returns the most significant 64 bits of this instance.
int32_t ignite::Guid::GetVariant | ( | ) | const |
The variant number associated with this instance.
The variant number describes the layout of the Guid.
The variant number has the following meaning: 0 Reserved for NCS backward compatibility; 2 IETF RFC 4122 (Leach-Salz), used by this class; 6 Reserved, Microsoft Corporation backward compatibility; 7 Reserved for future definition.
int32_t ignite::Guid::GetVersion | ( | ) | const |
The version number associated with this instance.
The version number describes how this Guid was generated.
The version number has the following meaning: 1 Time-based UUID; 2 DCE security UUID; 3 Name-based UUID; 4 Randomly generated UUID.
Comparison operator.
val1 | First value. |
val2 | Second value. |
Comparison operator.
val1 | First value. |
val2 | Second value. |
Comparison operator.
val1 | First value. |
val2 | Second value. |
Comparison operator override.
val1 | First value. |
val2 | Second value. |
Comparison operator.
val1 | First value. |
val2 | Second value. |
Comparison operator.
val1 | First value. |
val2 | Second value. |
Comparison operator.
val1 | First value. |
val2 | Second value. |