TEvaluationTreeEntryContainer

Sub-divided container type that allocates smaller 'buckets' of capacity within a single allocation.

Windows
MacOS
Linux

References

Module

MovieScene

Header

/Engine/Source/Runtime/MovieScene/Public/Evaluation/MovieSceneEvaluationTree.h

Include

#include "Evaluation/MovieSceneEvaluationTree.h"

Syntax

template<typename ElementType>
struct TEvaluationTreeEntryContainer

Remarks

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

Functions

Name Description

Public function

void

 

Add

(
    FEvaluationTreeEntryHandle ID,
    ElementType&& Element
)

Add a new element to the entry contents with the specified identifier

Public function

FEvaluationT...

 

AllocateEntry

(
    int32 InitialCapacity
)

Allocate a new entry of the specified capacity.

Public function

void

 

Compact()

Compress the item array to remove any unused capacity.

Public function

TArrayView< ...

 

Get

Access the entry contents corresponding to the specified ID

Public function Const

TArrayView< ...

 

Get

Const access to the entry contents corresponding to the specified ID

Public function

void

 

Insert

(
    FEvaluationTreeEntryHandle ID,
    int32 Index,
    ElementType&& Element
)

Insert a new element to the entry with the specified identifier at a specific index within the entry

Public function

void

 

Reset()

Reset this container to its default state

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss