| TArray
|
Module |
|
Header |
/Engine/Source/Runtime/Core/Public/Containers/MRUArray.h |
Include |
#include "Containers/MRUArray.h" |
template<typename T, typename Allocator>
class TMRUArray : public TArray< T, Allocator >
Same as TArray except:
Has an upper limit of the number of items it will store.
Any item that is added to the array is moved to the top.
Name | Description | ||
---|---|---|---|
|
MaxItems |
The maximum number of items we can store in this array. |
Name | Description | |
---|---|---|
|
TMRUArray() |
Constructor. |
|
TMRUArray ( |
|
|
TMRUArray ( |
Name | Description | ||
---|---|---|---|
|
Add ( |
Adds item to the array. Makes sure that we don't add more than the limit. |
|
|
AddUnique ( |
Adds unique item to the array. |
|
|
AddZeroed ( |
Adds a number of zeroed elements to the array. Makes sure that we don't add more than the limit. |
|
|
CullArray() |
Makes sure that the array never gets beyond MaxItems in size. |
Name |
Description |
---|---|
Super |