FKeyHandleSet

A set of key handles implemented as a sorted array for transparent passing to TArrayView<> APIs.

Choose your operating system:

Windows

macOS

Linux

References

Module

CurveEditor

Header

/Engine/Source/Editor/CurveEditor/Public/CurveEditorSelection.h

Include

#include "CurveEditorSelection.h"

Syntax

struct FKeyHandleSet

Remarks

A set of key handles implemented as a sorted array for transparent passing to TArrayView<> APIs. Lookup is achieved via binary search: O(log(n)).

Functions

Name Description

Public function

void

 

Add

(
    FKeyHandle Handle,
    ECurvePointType PointType
)

Add a new key handle to this set

Public function Const

TArrayView< ...

 

AsArray()

Retrieve a constant view of this set as an array

Public function Const

bool

 

Contains

(
    FKeyHandle Handle,
    ECurvePointType PointType
)

Check whether the specified handle exists in this set

Public function Const

int32

 

Num()

Retrieve the number of handles in this set

Public function Const

ECurvePointT...

 

PointType

(
    FKeyHandle Handle
)

Retrieve the point type for this handle

Public function

void

 

Remove

(
    FKeyHandle Handle,
    ECurvePointType PointType
)

Remove a handle from this set

Public function

void

 

Toggle

(
    FKeyHandle Handle,
    ECurvePointType PointType
)

Remove a handle from this set if it already exists, otherwise add it to the set