![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <KeyHandle.h>
Inheritance diagram for FKeyHandleLookupTable:Public Member Functions | |
| ENGINE_API int32 | GetIndex (FKeyHandle KeyHandle) |
| ENGINE_API FKeyHandle | FindOrAddKeyHandle (int32 Index) |
| ENGINE_API void | MoveHandle (int32 OldIndex, int32 NewIndex) |
| ENGINE_API FKeyHandle | AllocateHandle (int32 Index) |
| ENGINE_API void | DeallocateHandle (int32 Index) |
| ENGINE_API void | ReplaceHandle (int32 Index, FKeyHandle HandleToReplace) |
| ENGINE_API void | Reset () |
| ENGINE_API bool | Serialize (FArchive &Ar) |
Friends | |
| FArchive & | operator<< (FArchive &Ar, FKeyHandleLookupTable &P) |
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.
| FKeyHandle FKeyHandleLookupTable::AllocateHandle | ( | int32 | Index | ) |
Allocate a new handle for the specified index
| Index | The index to associate a handle with |
Deallocate the specified index
| Index | The index to invalidate a handle for |
| 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
| Index | The index to find or allocate a handle for |
| int32 FKeyHandleLookupTable::GetIndex | ( | FKeyHandle | KeyHandle | ) |
Get the index that corresponds to the specified key handle
| KeyHandle | The key handle to retrieve an up to date index for |
Move the specified handle from its previous index, to its new index
| OldIndex | The previous index of the handle |
| NewIndex | The new index of the handle |
| void FKeyHandleLookupTable::ReplaceHandle | ( | int32 | Index, |
| FKeyHandle | HandleToReplace | ||
| ) |
Replaces the key handle at Index with HandleToReplace.
| Index | The index at which to replace the handle |
| HandleToReplace | The key handle to set at the index. Fails if this handle already is in the table. |
| void FKeyHandleLookupTable::Reset | ( | ) |
Reset this lookup table, forgetting all key handles and indices
|
friend |