Navigation
API > API/Runtime > API/Runtime/MovieScene
Sub-divided container type that allocates smaller 'buckets' of capacity within a single allocation. New entries, or entries needing additional capacity are reallocated at the end of the array to avoid reallocation or shuffling. Memory footprint can be compacted once the container is fully built using TEvaluationTreeEntryContainer::Compact Designed specifically to solve allocation cost incurred when compiling very large trees of sequence data. Restrictions: Container can only ever add entries, never remove
| Name | TEvaluationTreeEntryContainer |
| Type | struct |
| Header File | /Engine/Source/Runtime/MovieScene/Public/Evaluation/MovieSceneEvaluationTree.h |
| Include Path | #include "Evaluation/MovieSceneEvaluationTree.h" |
Syntax
template<typename ElementType>
struct TEvaluationTreeEntryContainer
Structs
| Name | Remarks |
|---|---|
| FEntry |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Entries | TArray< FEntry > | List of allocated entries for each allocated entry. | Evaluation/MovieSceneEvaluationTree.h | |
| Items | TArray< ElementType > | Linear array of allocated entry contents. | Evaluation/MovieSceneEvaluationTree.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Add
(
FEvaluationTreeEntryHandle ID, |
Add a new element to the entry contents with the specified identifier | Evaluation/MovieSceneEvaluationTree.h | |
FEvaluationTreeEntryHandle AllocateEntry
(
int32 InitialCapacity |
Allocate a new entry of the specified capacity. | Evaluation/MovieSceneEvaluationTree.h | |
void Compact() |
Compress the item array to remove any unused capacity. | Evaluation/MovieSceneEvaluationTree.h | |
TArrayView< ElementType > Get
(
FEvaluationTreeEntryHandle ID |
Access the entry contents corresponding to the specified ID | Evaluation/MovieSceneEvaluationTree.h | |
TArrayView< const ElementType > Get
(
FEvaluationTreeEntryHandle ID |
Const access to the entry contents corresponding to the specified ID | Evaluation/MovieSceneEvaluationTree.h | |
void Insert
(
FEvaluationTreeEntryHandle ID, |
Insert a new element to the entry with the specified identifier at a specific index within the entry | Evaluation/MovieSceneEvaluationTree.h | |
void Reset() |
Reset this container to its default state | Evaluation/MovieSceneEvaluationTree.h |