CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
|
Represents a Globally Unique IDentifier This type should be allocated on stack and passed to functions by value or by reference. Never use System::SmartPtr class to manage objects of this type. More...
#include <guid.h>
Public Member Functions | |
Guid () | |
Constructs an object that represents a GUID consisting of all zeroes. More... | |
Guid (const ArrayPtr< uint8_t > &b) | |
Constructs an object that represents a GUID specified as an array of unsigned 8-bit integer values. More... | |
Guid (const System::Details::ArrayView< uint8_t > &b) | |
Constructs an object that represents a GUID specified as an array view of unsigned 8-bit integer values. More... | |
Guid (const String &g) | |
Constructs an object that represents a GUID specified as a string. More... | |
Guid (int32_t a, int16_t b, int16_t c, const ArrayPtr< uint8_t > &d) | |
Constructs an instance of Guid class from the specified GUID components. More... | |
Guid (int32_t a, int16_t b, int16_t c, const System::Details::ArrayView< uint8_t > &d) | |
Constructs an instance of Guid class from the specified GUID components. More... | |
Guid (int32_t a, int16_t b, int16_t c, uint8_t d, uint8_t e, uint8_t f, uint8_t g, uint8_t h, uint8_t i, uint8_t j, uint8_t k) | |
Constructs an instance of Guid class from the specified unsigned integers and bytes. More... | |
Guid (uint32_t a, uint16_t b, uint16_t c, uint8_t d, uint8_t e, uint8_t f, uint8_t g, uint8_t h, uint8_t i, uint8_t j, uint8_t k) | |
Constructs an instance of Guid class from the specified unsigned integers and bytes. More... | |
~Guid () | |
Destructor. More... | |
Guid (const Guid &guid) | |
Constructs an object that represents the same GUID as the specified object. More... | |
Guid & | operator= (const Guid &guid) |
Assigns to the current object the GUID value represented by the specified Guid object. More... | |
int | CompareTo (const Guid &g) const |
Performs arithmetic comparison of the GUIDs represented by the current and specified objects. More... | |
bool | Equals (const Guid &g) const |
Determines if the GUIDs represented by the current and specified objects are equal. More... | |
ArrayPtr< uint8_t > | ToByteArray () const |
Converts the GUID represented by the current object into array of bytes. More... | |
String | ToString () const |
Converts the GUID represented by the current object to its string representation. More... | |
String | ToString (const String &format) const |
Converts the GUID represented by the current object to its string representation using the specified string format. More... | |
String | ToString (const String &format, const SharedPtr< Globalization::CultureInfo > &culture) const |
Converts the GUID represented by the current object to its string representation using the specified string format and Culture. More... | |
bool | operator!= (const Guid &b) const |
Determines if the GUIDs represented by the current and specified objects are not equal. More... | |
bool | operator== (const Guid &b) const |
Determines if the GUIDs represented by the current and specified objects are equal. More... | |
int | GetHashCode () const |
Returns a hash code for the current object. More... | |
Static Public Member Functions | |
static Guid | NewGuid () |
Generates a new GUID and returns a Guid object that represents it. More... | |
static Guid | Parse (const String &input) |
Converts the specified string representation of a GUID into equivalent Guid object. More... | |
static bool | TryParse (const String &input, Guid &g) |
Tries to convert the specified string into Guid object. More... | |
Static Public Attributes | |
static Guid | Empty |
Represents a GUID that has a value of 0. More... | |
Represents a Globally Unique IDentifier This type should be allocated on stack and passed to functions by value or by reference. Never use System::SmartPtr class to manage objects of this type.
System::Guid::Guid | ( | ) |
Constructs an object that represents a GUID consisting of all zeroes.
System::Guid::Guid | ( | const ArrayPtr< uint8_t > & | b | ) |
Constructs an object that represents a GUID specified as an array of unsigned 8-bit integer values.
b | A byte-array containing separate bytes of the GUID |
System::Guid::Guid | ( | const System::Details::ArrayView< uint8_t > & | b | ) |
Constructs an object that represents a GUID specified as an array view of unsigned 8-bit integer values.
b | A byte-array containing separate bytes of the GUID |
System::Guid::Guid | ( | const String & | g | ) |
Constructs an object that represents a GUID specified as a string.
g | The string representation of a GUID to be represented by the object being constructed |
System::Guid::Guid | ( | int32_t | a, |
int16_t | b, | ||
int16_t | c, | ||
const ArrayPtr< uint8_t > & | d | ||
) |
Constructs an instance of Guid class from the specified GUID components.
a | Bits 0-31 of the GUID |
b | Bits 32-47 of the GUID |
c | Bits 48-63 of the GUID |
d | A byte array containing bits 64-127 of the GUID |
System::Guid::Guid | ( | int32_t | a, |
int16_t | b, | ||
int16_t | c, | ||
const System::Details::ArrayView< uint8_t > & | d | ||
) |
Constructs an instance of Guid class from the specified GUID components.
a | Bits 0-31 of the GUID |
b | Bits 32-47 of the GUID |
c | Bits 48-63 of the GUID |
d | A byte array view containing bits 64-127 of the GUID |
System::Guid::Guid | ( | int32_t | a, |
int16_t | b, | ||
int16_t | c, | ||
uint8_t | d, | ||
uint8_t | e, | ||
uint8_t | f, | ||
uint8_t | g, | ||
uint8_t | h, | ||
uint8_t | i, | ||
uint8_t | j, | ||
uint8_t | k | ||
) |
Constructs an instance of Guid class from the specified unsigned integers and bytes.
a | Bits 0-31 of the GUID |
b | Bits 32-47 of the GUID |
c | Bits 48-63 of the GUID |
d | Bits 64-71 of the GUID |
e | Bits 72-79 of the GUID |
f | Bits 80-87 of the GUID |
g | Bits 88-95 of the GUID |
h | Bits 96-103 of the GUID |
i | Bits 104-111 of the GUID |
j | Bits 112-119 of the GUID |
k | Bits 120-127 of the GUID |
System::Guid::Guid | ( | uint32_t | a, |
uint16_t | b, | ||
uint16_t | c, | ||
uint8_t | d, | ||
uint8_t | e, | ||
uint8_t | f, | ||
uint8_t | g, | ||
uint8_t | h, | ||
uint8_t | i, | ||
uint8_t | j, | ||
uint8_t | k | ||
) |
Constructs an instance of Guid class from the specified unsigned integers and bytes.
a | Bits 0-31 of the GUID |
b | Bits 32-47 of the GUID |
c | Bits 48-63 of the GUID |
d | Bits 64-71 of the GUID |
e | Bits 72-79 of the GUID |
f | Bits 80-87 of the GUID |
g | Bits 88-95 of the GUID |
h | Bits 96-103 of the GUID |
i | Bits 104-111 of the GUID |
j | Bits 112-119 of the GUID |
k | Bits 120-127 of the GUID |
System::Guid::~Guid | ( | ) |
Destructor.
System::Guid::Guid | ( | const Guid & | guid | ) |
Constructs an object that represents the same GUID as the specified object.
guid | The Guid object to copy the GUID value from |
int System::Guid::CompareTo | ( | const Guid & | g | ) | const |
Performs arithmetic comparison of the GUIDs represented by the current and specified objects.
g | The comparand |
g
; 0 if the GUIDs are equal; 1 if the GUID represented by the current object is greater than the GUID represented by g
bool System::Guid::Equals | ( | const Guid & | g | ) | const |
Determines if the GUIDs represented by the current and specified objects are equal.
g | The comparand |
int System::Guid::GetHashCode | ( | ) | const |
Returns a hash code for the current object.
|
static |
Generates a new GUID and returns a Guid object that represents it.
bool System::Guid::operator!= | ( | const Guid & | b | ) | const |
Determines if the GUIDs represented by the current and specified objects are not equal.
b | The comparand |
bool System::Guid::operator== | ( | const Guid & | b | ) | const |
Determines if the GUIDs represented by the current and specified objects are equal.
b | The comparand |
ArrayPtr< uint8_t > System::Guid::ToByteArray | ( | ) | const |
Converts the GUID represented by the current object into array of bytes.
String System::Guid::ToString | ( | ) | const |
Converts the GUID represented by the current object to its string representation.
Converts the GUID represented by the current object to its string representation using the specified string format.
format | The format to use |
String System::Guid::ToString | ( | const String & | format, |
const SharedPtr< Globalization::CultureInfo > & | culture | ||
) | const |
Converts the GUID represented by the current object to its string representation using the specified string format and Culture.
format | The format to use |
culture | Culture to use |
|
static |
Represents a GUID that has a value of 0.