Navigation
API > API/Runtime > API/Runtime/Engine
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.
| Name | FKeyHandleLookupTable |
| Type | struct |
| Header File | /Engine/Source/Runtime/Engine/Classes/Curves/KeyHandle.h |
| Include Path | #include "Curves/KeyHandle.h" |
Syntax
USTRUCT ()
struct FKeyHandleLookupTable
Derived Classes
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| KeyHandles | TSparseArray< FKeyHandle > | Array of optional key handles that reside in corresponding indices for an externally owned serial data structure | Curves/KeyHandle.h | |
| KeyHandlesToIndices | TMap< FKeyHandle, int32 > | Map of which key handles go to which indices. | Curves/KeyHandle.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FKeyHandle AllocateHandle
(
int32 Index |
Allocate a new handle for the specified index | Curves/KeyHandle.h | |
void DeallocateHandle
(
int32 Index |
Deallocate the specified index | Curves/KeyHandle.h | |
FKeyHandle FindOrAddKeyHandle
(
int32 Index |
Attempt to find the handle for the specified index, or allocate a new one if it doesn't have one | Curves/KeyHandle.h | |
int32 GetIndex
(
FKeyHandle KeyHandle |
Get the index that corresponds to the specified key handle | Curves/KeyHandle.h | |
void MoveHandle
(
int32 OldIndex, |
Move the specified handle from its previous index, to its new index | Curves/KeyHandle.h | |
void ReplaceHandle
(
int32 Index, |
Replaces the key handle at Index with HandleToReplace. | Curves/KeyHandle.h | |
void Reset() |
Reset this lookup table, forgetting all key handles and indices | Curves/KeyHandle.h | |
bool Serialize
(
FArchive& Ar |
ICPPStructOps implementation | Curves/KeyHandle.h |