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 | |
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
| void TEvaluationTreeEntryContainer< ElementType >::Add | ( | FEvaluationTreeEntryHandle | ID, |
| ElementType && | Element | ||
| ) |
Add a new element to the entry contents with the specified identifier
| ID | The entry identifier, obtained through AllocateEntry |
| Element | The element to add |
| FEvaluationTreeEntryHandle TEvaluationTreeEntryContainer< ElementType >::AllocateEntry | ( | int32 | InitialCapacity = 2 | ) |
Allocate a new entry of the specified capacity.
Will default-construct Capacity elements in the item array.
| InitialCapacity | The initial capacity of the entry |
| TArrayView< ElementType > TEvaluationTreeEntryContainer< ElementType >::Get | ( | FEvaluationTreeEntryHandle | ID | ) |
Access the entry contents corresponding to the specified ID
| TArrayView< const ElementType > TEvaluationTreeEntryContainer< ElementType >::Get | ( | FEvaluationTreeEntryHandle | ID | ) | const |
Const access to the entry contents corresponding to the specified ID
| 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
| ID | The entry identifier, obtained through AllocateEntry |
| Index | The index within the entry at which to insert the new element |
| Element | The element to add |