Implements a globally unique identifier. 更多...
#include <Guid.h>
Public 成员函数 | |
| CORE_API bool | ExportTextItem (FString &ValueStr, FGuid const &DefaultValue, UObject *Parent, int32 PortFlags, class UObject *ExportRootScope) const |
| Exports the GUIDs value to a string. 更多... | |
| FGuid () | |
| Default constructor. | |
| FGuid (uint32 InA, uint32 InB, uint32 InC, uint32 InD) | |
| Creates and initializes a new GUID from the specified components. 更多... | |
| CORE_API bool | ImportTextItem (const TCHAR *&Buffer, int32 PortFlags, UObject *Parent, FOutputDevice *ErrorText) |
| Imports the GUIDs value from a text buffer. 更多... | |
| void | Invalidate () |
| Invalidates the GUID. 更多... | |
| bool | IsValid () const |
| Checks whether this GUID is valid or not. 更多... | |
| uint32 & | operator[] (int32 Index) |
| Provides access to the GUIDs components. 更多... | |
| const uint32 & | operator[] (int32 Index) const |
| Provides read-only access to the GUIDs components. 更多... | |
| FString | ToString () const |
| Converts this GUID to its string representation. 更多... | |
| CORE_API FString | ToString (EGuidFormats Format) const |
| Converts this GUID to its string representation using the specified format. 更多... | |
静态 Public 成员函数 | |
| static CORE_API FGuid | NewGuid () |
| Returns a new GUID. 更多... | |
| static CORE_API bool | Parse (const FString &GuidString, FGuid &OutGuid) |
| Converts a string to a GUID. 更多... | |
| static CORE_API bool | ParseExact (const FString &GuidString, EGuidFormats Format, FGuid &OutGuid) |
| Converts a string with the specified format to a GUID. 更多... | |
Public 属性 | |
| uint32 | A |
| Holds the first component. | |
| uint32 | B |
| Holds the second component. | |
| uint32 | C |
| Holds the third component. | |
| uint32 | D |
| Holds the fourth component. | |
友元 | |
| uint32 | GetTypeHash (const FGuid &Guid) |
| Calculates the hash for a GUID. 更多... | |
| FString | LexToString (const FGuid &Value) |
| Guid default string conversion. | |
| bool | operator!= (const FGuid &X, const FGuid &Y) |
| Compares two GUIDs for inequality. 更多... | |
| bool | operator< (const FGuid &X, const FGuid &Y) |
| Compares two GUIDs. 更多... | |
| CORE_API friend FArchive & | operator<< (FArchive &Ar, FGuid &G) |
| Serializes a GUID from or into an archive. 更多... | |
| CORE_API friend void | operator<< (FStructuredArchive::FSlot Slot, FGuid &G) |
| Serializes a GUID from or into a structured archive slot. 更多... | |
| bool | operator== (const FGuid &X, const FGuid &Y) |
| Compares two GUIDs for equality. 更多... | |
Implements a globally unique identifier.
|
inlineexplicit |
Creates and initializes a new GUID from the specified components.
| InA | The first component. |
| InB | The second component. |
| InC | The third component. |
| InD | The fourth component. |
| CORE_API bool FGuid::ExportTextItem | ( | FString & | ValueStr, |
| FGuid const & | DefaultValue, | ||
| UObject * | Parent, | ||
| int32 | PortFlags, | ||
| class UObject * | ExportRootScope | ||
| ) | const |
Exports the GUIDs value to a string.
| ValueStr | Will hold the string value. |
| DefaultValue | The default value. |
| Parent | Not used. |
| PortFlags | Not used. |
| ExportRootScope | Not used. |
| CORE_API bool FGuid::ImportTextItem | ( | const TCHAR *& | Buffer, |
| int32 | PortFlags, | ||
| UObject * | Parent, | ||
| FOutputDevice * | ErrorText | ||
| ) |
Imports the GUIDs value from a text buffer.
| Buffer | The text buffer to import from. |
| PortFlags | Not used. |
| Parent | Not used. |
| ErrorText | The output device for error logging. |
|
inline |
Invalidates the GUID.
|
inline |
Checks whether this GUID is valid or not.
A GUID that has all its components set to zero is considered invalid.
|
static |
Returns a new GUID.
|
inline |
Provides access to the GUIDs components.
| Index | The index of the component to return (0...3). |
|
inline |
Provides read-only access to the GUIDs components.
| Index | The index of the component to return (0...3). |
Converts a string to a GUID.
| GuidString | The string to convert. |
| OutGuid | Will contain the parsed GUID. |
|
inline |
Converts this GUID to its string representation.
| CORE_API FString FGuid::ToString | ( | EGuidFormats | Format | ) | const |
Converts this GUID to its string representation using the specified format.
| Format | The string format to use. |
|
friend |
Calculates the hash for a GUID.
| Guid | The GUID to calculate the hash for. |
Compares two GUIDs for inequality.
| X | The first GUID to compare. |
| Y | The second GUID to compare. |
Compares two GUIDs.
| X | The first GUID to compare. |
| Y | The second GUID to compare. |
Serializes a GUID from or into an archive.
| Ar | The archive to serialize from or into. |
| G | The GUID to serialize. |
|
friend |
Serializes a GUID from or into a structured archive slot.
| Slot | The structured archive slot to serialize from or into |
| G | The GUID to serialize. |
Compares two GUIDs for equality.
| X | The first GUID to compare. |
| Y | The second GUID to compare. |