engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 所有成员列表
FKeyHandleLookupTable结构体 参考

Lookup table that maps key handles to indices in an external data structure Maintains a map of key handle to last known index, and an array of optional key handles that's used to validate map entries. 更多...

#include <KeyHandle.h>

+ 类 FKeyHandleLookupTable 继承关系图:

Public 成员函数

ENGINE_API FKeyHandle AllocateHandle (int32 Index)
 Allocate a new handle for the specified index 更多...
 
ENGINE_API void DeallocateHandle (int32 Index)
 Deallocate the specified index 更多...
 
ENGINE_API FKeyHandle FindOrAddKeyHandle (int32 Index)
 Attempt to find the handle for the specified index, or allocate a new one if it doesn't have one 更多...
 
ENGINE_API int32 GetIndex (FKeyHandle KeyHandle)
 Get the index that corresponds to the specified key handle 更多...
 
ENGINE_API void MoveHandle (int32 OldIndex, int32 NewIndex)
 Move the specified handle from its previous index, to its new index 更多...
 
ENGINE_API void Reset ()
 Reset this lookup table, forgetting all key handles and indices
 
ENGINE_API bool Serialize (FArchive &Ar)
 ICPPStructOps implementation
 

详细描述

Lookup table that maps key handles to indices in an external data structure Maintains a map of key handle to last known index, and an array of optional key handles that's used to validate map entries.

成员函数说明

◆ AllocateHandle()

ENGINE_API FKeyHandle FKeyHandleLookupTable::AllocateHandle ( int32  Index)

Allocate a new handle for the specified index

参数
IndexThe index to associate a handle with
返回
A new key handle that corresponds to the specified index

◆ DeallocateHandle()

ENGINE_API void FKeyHandleLookupTable::DeallocateHandle ( int32  Index)

Deallocate the specified index

参数
IndexThe index to invalidate a handle for

◆ FindOrAddKeyHandle()

ENGINE_API FKeyHandle FKeyHandleLookupTable::FindOrAddKeyHandle ( int32  Index)

Attempt to find the handle for the specified index, or allocate a new one if it doesn't have one

参数
IndexThe index to find or allocate a handle for
返回
A valid key handle for the specified index

◆ GetIndex()

ENGINE_API int32 FKeyHandleLookupTable::GetIndex ( FKeyHandle  KeyHandle)

Get the index that corresponds to the specified key handle

参数
KeyHandleThe key handle to retrieve an up to date index for
返回
The index that corresponds to this key handle, or INDEX_NONE if the key handle is invalid

◆ MoveHandle()

ENGINE_API void FKeyHandleLookupTable::MoveHandle ( int32  OldIndex,
int32  NewIndex 
)

Move the specified handle from its previous index, to its new index

参数
OldIndexThe previous index of the handle
NewIndexThe new index of the handle

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