engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 静态 Public 成员函数 | Public 属性 | 友元 | 所有成员列表
FGuid结构体 参考

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.

构造及析构函数说明

◆ FGuid()

FGuid::FGuid ( uint32  InA,
uint32  InB,
uint32  InC,
uint32  InD 
)
inlineexplicit

Creates and initializes a new GUID from the specified components.

参数
InAThe first component.
InBThe second component.
InCThe third component.
InDThe fourth component.

成员函数说明

◆ ExportTextItem()

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.

参数
ValueStrWill hold the string value.
DefaultValueThe default value.
ParentNot used.
PortFlagsNot used.
ExportRootScopeNot used.
返回
true on success, false otherwise.
参见
ImportTextItem

◆ ImportTextItem()

CORE_API bool FGuid::ImportTextItem ( const TCHAR *&  Buffer,
int32  PortFlags,
UObject *  Parent,
FOutputDevice *  ErrorText 
)

Imports the GUIDs value from a text buffer.

参数
BufferThe text buffer to import from.
PortFlagsNot used.
ParentNot used.
ErrorTextThe output device for error logging.
返回
true on success, false otherwise.
参见
ExportTextItem

◆ Invalidate()

void FGuid::Invalidate ( )
inline

Invalidates the GUID.

参见
IsValid

◆ IsValid()

bool FGuid::IsValid ( ) const
inline

Checks whether this GUID is valid or not.

A GUID that has all its components set to zero is considered invalid.

返回
true if valid, false otherwise.
参见
Invalidate

◆ NewGuid()

static CORE_API FGuid FGuid::NewGuid ( )
static

Returns a new GUID.

返回
A new GUID.

◆ operator[]() [1/2]

uint32 & FGuid::operator[] ( int32  Index)
inline

Provides access to the GUIDs components.

参数
IndexThe index of the component to return (0...3).
返回
The component.

◆ operator[]() [2/2]

const uint32 & FGuid::operator[] ( int32  Index) const
inline

Provides read-only access to the GUIDs components.

参数
IndexThe index of the component to return (0...3).
返回
The component.

◆ Parse()

static CORE_API bool FGuid::Parse ( const FString &  GuidString,
FGuid &  OutGuid 
)
static

Converts a string to a GUID.

参数
GuidStringThe string to convert.
OutGuidWill contain the parsed GUID.
返回
true if the string was converted successfully, false otherwise.
参见
ParseExact, ToString

◆ ParseExact()

static CORE_API bool FGuid::ParseExact ( const FString &  GuidString,
EGuidFormats  Format,
FGuid &  OutGuid 
)
static

Converts a string with the specified format to a GUID.

参数
GuidStringThe string to convert.
FormatThe string format to parse.
OutGuidWill contain the parsed GUID.
返回
true if the string was converted successfully, false otherwise.
参见
Parse, ToString

◆ ToString() [1/2]

FString FGuid::ToString ( ) const
inline

Converts this GUID to its string representation.

返回
The string representation.

◆ ToString() [2/2]

CORE_API FString FGuid::ToString ( EGuidFormats  Format) const

Converts this GUID to its string representation using the specified format.

参数
FormatThe string format to use.
返回
The string representation.

友元及相关函数文档

◆ GetTypeHash

uint32 GetTypeHash ( const FGuid &  Guid)
friend

Calculates the hash for a GUID.

参数
GuidThe GUID to calculate the hash for.
返回
The hash.

◆ operator!=

bool operator!= ( const FGuid &  X,
const FGuid &  Y 
)
friend

Compares two GUIDs for inequality.

参数
XThe first GUID to compare.
YThe second GUID to compare.
返回
true if the GUIDs are not equal, false otherwise.

◆ operator<

bool operator< ( const FGuid &  X,
const FGuid &  Y 
)
friend

Compares two GUIDs.

参数
XThe first GUID to compare.
YThe second GUID to compare.
返回
true if the first GUID is less than the second one.

◆ operator<< [1/2]

CORE_API friend FArchive & operator<< ( FArchive &  Ar,
FGuid &  G 
)
friend

Serializes a GUID from or into an archive.

参数
ArThe archive to serialize from or into.
GThe GUID to serialize.

◆ operator<< [2/2]

CORE_API friend void operator<< ( FStructuredArchive::FSlot  Slot,
FGuid &  G 
)
friend

Serializes a GUID from or into a structured archive slot.

参数
SlotThe structured archive slot to serialize from or into
GThe GUID to serialize.

◆ operator==

bool operator== ( const FGuid &  X,
const FGuid &  Y 
)
friend

Compares two GUIDs for equality.

参数
XThe first GUID to compare.
YThe second GUID to compare.
返回
true if the GUIDs are equal, false otherwise.

该结构体的文档由以下文件生成: