engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 友元 | 所有成员列表
TEvaluationTreeEntryContainer< ElementType > 模板结构体 参考

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

#include <MovieSceneEvaluationTree.h>

Public 成员函数

void Add (FEvaluationTreeEntryHandle ID, ElementType &&Element)
 Add a new element to the entry contents with the specified identifier 更多...
 
FEvaluationTreeEntryHandle AllocateEntry (int32 InitialCapacity=2)
 Allocate a new entry of the specified capacity. 更多...
 
void Compact ()
 Compress the item array to remove any unused capacity.
 
TArrayView< ElementType > Get (FEvaluationTreeEntryHandle ID)
 Access the entry contents corresponding to the specified ID 更多...
 
TArrayView< const ElementType > Get (FEvaluationTreeEntryHandle ID) const
 Const access to the entry contents corresponding to the specified ID 更多...
 
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 更多...
 
void Reset ()
 Reset this container to its default state
 

友元

FArchive & operator<< (FArchive &Ar, TEvaluationTreeEntryContainer &In)
 Serialize this container
 
bool operator== (const TEvaluationTreeEntryContainer< ElementType > &A, const TEvaluationTreeEntryContainer< ElementType > &B)
 Equality operator
 

详细描述

template<typename ElementType>
struct TEvaluationTreeEntryContainer< ElementType >

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

成员函数说明

◆ Add()

template<typename ElementType >
void TEvaluationTreeEntryContainer< ElementType >::Add ( FEvaluationTreeEntryHandle  ID,
ElementType &&  Element 
)

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

参数
IDThe entry identifier, obtained through AllocateEntry
ElementThe element to add

◆ AllocateEntry()

template<typename ElementType >
FEvaluationTreeEntryHandle TEvaluationTreeEntryContainer< ElementType >::AllocateEntry ( int32  InitialCapacity = 2)

Allocate a new entry of the specified capacity.

Will default-construct Capacity elements in the item array.

参数
InitialCapacityThe initial capacity of the entry
返回
The identifier to be used to access the entry

◆ Get() [1/2]

template<typename ElementType >
TArrayView< ElementType > TEvaluationTreeEntryContainer< ElementType >::Get ( FEvaluationTreeEntryHandle  ID)

Access the entry contents corresponding to the specified ID

返回
An array view for the currently allocated elements, not including spare capacity

◆ Get() [2/2]

template<typename ElementType >
TArrayView< const ElementType > TEvaluationTreeEntryContainer< ElementType >::Get ( FEvaluationTreeEntryHandle  ID) const

Const access to the entry contents corresponding to the specified ID

返回
A const array view for the currently allocated elements, not including spare capacity

◆ Insert()

template<typename ElementType >
void TEvaluationTreeEntryContainer< ElementType >::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

参数
IDThe entry identifier, obtained through AllocateEntry
IndexThe index within the entry at which to insert the new element
ElementThe element to add

该结构体的文档由以下文件生成: