Navigation
API > API/Runtime > API/Runtime/Engine
Represents a mapping of key handles to key index that may be serialized
| Name | FKeyHandleMap |
| Type | struct |
| Header File | /Engine/Source/Runtime/Engine/Classes/Curves/KeyHandle.h |
| Include Path | #include "Curves/KeyHandle.h" |
Syntax
USTRUCT ()
struct FKeyHandleMap
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Curves/KeyHandle.h | |||
FKeyHandleMap
(
const FKeyHandleMap& Other |
This struct is not copyable. This must be public or because derived classes are allowed to be copied. | Curves/KeyHandle.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| KeyHandles | TArray< FKeyHandle > | Curves/KeyHandle.h | ||
| KeyHandlesToIndices | TMap< FKeyHandle, int32 > | Curves/KeyHandle.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Add
(
const FKeyHandle& InHandle, |
TMap functionality | Curves/KeyHandle.h | |
TArray< FKeyHandle >::TConstIterator CreateConstIterator() |
Curves/KeyHandle.h | ||
void Empty
(
int32 ExpectedNumElements |
Curves/KeyHandle.h | ||
void EnsureAllIndicesHaveHandles
(
int32 NumIndices |
Ensures that all indices have a valid handle and that there are no handles left to invalid indices. | Curves/KeyHandle.h | |
void EnsureIndexHasAHandle
(
int32 KeyIndex |
Ensures a handle exists for the specified Index. | Curves/KeyHandle.h | |
const int32 * Find
(
const FKeyHandle& InHandle |
Curves/KeyHandle.h | ||
const FKeyHandle * FindKey
(
int32 KeyIndex |
Curves/KeyHandle.h | ||
const TMap< FKeyHandle, int32 > & GetMap() |
Curves/KeyHandle.h | ||
void Initialize
(
TArrayView< const FKeyHandle > InKeyHandles |
Quickly initializes this map by clearing it and filling with KeyHandles in O(n) time, instead of O(n^2) if Add() was used in a loop. | Curves/KeyHandle.h | |
int32 Num() |
Curves/KeyHandle.h | ||
void Remove
(
const FKeyHandle& InHandle |
Curves/KeyHandle.h | ||
void Reserve
(
int32 NumElements |
Curves/KeyHandle.h | ||
bool Serialize
(
FArchive& Ar |
ICPPStructOps implementation | Curves/KeyHandle.h | |
void SetKeyHandles
(
int32 Num |
Curves/KeyHandle.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool operator!=
(
const FKeyHandleMap& Other |
Curves/KeyHandle.h | ||
void operator=
(
const FKeyHandleMap& Other |
Curves/KeyHandle.h | ||
bool operator==
(
const FKeyHandleMap& Other |
Curves/KeyHandle.h |