#include <IndirectArray.h>
|
| | TIndirectArray ()=default |
| |
| | TIndirectArray (TIndirectArray &&)=default |
| |
| | TIndirectArray (const TIndirectArray &Other) |
| |
| TIndirectArray & | operator= (const TIndirectArray &Other) |
| |
| TIndirectArray & | operator= (TIndirectArray &&Other) |
| |
| | ~TIndirectArray () |
| |
| bool | IsEmpty () const |
| |
| UE_FORCEINLINE_HINT int32 | Num () const |
| |
| UE_FORCEINLINE_HINT T ** | GetData () |
| |
| UE_FORCEINLINE_HINT const T ** | GetData () const |
| |
| UE_FORCEINLINE_HINT T & | operator[] (int32 Index) |
| |
| UE_FORCEINLINE_HINT const T & | operator[] (int32 Index) const |
| |
| UE_FORCEINLINE_HINT ElementType & | Last (int32 IndexFromTheEnd=0) |
| |
| UE_FORCEINLINE_HINT const ElementType & | Last (int32 IndexFromTheEnd=0) const |
| |
| void | Shrink () |
| |
| void | Reset (int32 NewSize=0) |
| |
| void | Serialize (FArchive &Ar, UObject *Owner) |
| |
| void | CountBytes (FArchive &Ar) const |
| |
| void | RemoveAt (int32 Index, EAllowShrinking AllowShrinking=UE::Core::Private::AllowShrinkingByDefault< Allocator >()) |
| |
| void | RemoveAt (int32 Index, int32 Count, EAllowShrinking AllowShrinking=UE::Core::Private::AllowShrinkingByDefault< Allocator >()) |
| |
| UE_FORCEINLINE_HINT void | RemoveAt (int32 Index, int32 Count, bool bAllowShrinking) |
| |
| void | RemoveAtSwap (int32 Index, EAllowShrinking AllowShrinking=UE::Core::Private::AllowShrinkingByDefault< Allocator >()) |
| |
| void | RemoveAtSwap (int32 Index, int32 Count, EAllowShrinking AllowShrinking=UE::Core::Private::AllowShrinkingByDefault< Allocator >()) |
| |
| UE_FORCEINLINE_HINT void | RemoveAtSwap (int32 Index, int32 Count, bool bAllowShrinking) |
| |
| void | Swap (int32 FirstIndexToSwap, int32 SecondIndexToSwap) |
| |
| void | Empty (int32 Slack=0) |
| |
| UE_FORCEINLINE_HINT int32 | Add (T *Item) |
| |
| UE_FORCEINLINE_HINT void | Insert (T *Item, int32 Index) |
| |
| UE_FORCEINLINE_HINT void | Reserve (int32 Number) |
| |
| UE_FORCEINLINE_HINT bool | IsValidIndex (int32 Index) const |
| |
| SIZE_T | GetAllocatedSize () const |
| |
| TIterator | CreateIterator () |
| |
| TConstIterator | CreateConstIterator () const |
| |
| UE_FORCEINLINE_HINT TDereferencingIterator< ElementType, typename InternalArrayType::RangedForIteratorType > | begin () |
| |
| UE_FORCEINLINE_HINT TDereferencingIterator< const ElementType, typename InternalArrayType::RangedForConstIteratorType > | begin () const |
| |
| UE_FORCEINLINE_HINT TDereferencingIterator< ElementType, typename InternalArrayType::RangedForIteratorType > | end () |
| |
| UE_FORCEINLINE_HINT TDereferencingIterator< const ElementType, typename InternalArrayType::RangedForConstIteratorType > | end () const |
| |
◆ ElementType
◆ InternalArrayType
◆ TConstIterator
◆ TIterator
◆ TIndirectArray() [1/3]
◆ TIndirectArray() [2/3]
◆ TIndirectArray() [3/3]
Copy constructor.
- Parameters
-
| Other | Other array to copy from. |
◆ ~TIndirectArray()
◆ Add()
Adds a new item to the end of the array, possibly reallocating the whole array to fit.
- Parameters
-
- Returns
- Index to the new item.
◆ begin() [1/2]
DO NOT USE DIRECTLY STL-like iterators to enable range-based for loop support.
◆ begin() [2/2]
◆ CountBytes()
Count bytes needed to serialize this array.
- Parameters
-
◆ CreateConstIterator()
Creates a const iterator for the contents of this array.
- Returns
- The const iterator.
◆ CreateIterator()
Creates an iterator for the contents of this array.
- Returns
- The iterator.
◆ Empty()
Empties the array. It calls the destructors on held items.
- Parameters
-
| Slack | (Optional) The expected usage size after empty operation. Default is 0. |
◆ end() [1/2]
◆ end() [2/2]
◆ GetAllocatedSize()
Helper function to return the amount of memory allocated by this container
- Returns
- Number of bytes allocated by this container.
◆ GetData() [1/2]
Helper function for returning a typed pointer to the first array entry.
- Returns
- Pointer to first array entry or nullptr if this->ArrayMax == 0.
◆ GetData() [2/2]
Helper function for returning a typed pointer to the first array entry.
- Returns
- Pointer to first array entry or nullptr if this->ArrayMax == 0.
◆ GetTypeSize()
Helper function returning the size of the inner type.
- Returns
- Size in bytes of array type.
◆ Insert()
Inserts a given element into the array at given location.
- Parameters
-
| Item | The element to insert. |
| Index | Tells where to insert the new elements. |
◆ IsEmpty()
Returns true if the array is empty and contains no elements.
- Returns
- True if the array is empty.
- See also
- Num
◆ IsValidIndex()
Tests if index is valid, i.e. greater than zero and less than number of elements in array.
- Parameters
-
- Returns
- True if index is valid. False otherwise.
◆ Last() [1/2]
Returns n-th last element from the array.
- Parameters
-
| IndexFromTheEnd | (Optional) Index from the end of array (default = 0). |
- Returns
- Reference to n-th last element from the array.
◆ Last() [2/2]
Returns n-th last element from the array.
Const version.
- Parameters
-
| IndexFromTheEnd | (Optional) Index from the end of array (default = 0). |
- Returns
- Reference to n-th last element from the array.
◆ Num()
Gets number of elements in array.
- Returns
- Number of elements in array.
◆ operator=() [1/2]
Assignment operators.
- Parameters
-
| Other | Other array to assign with. |
◆ operator=() [2/2]
◆ operator[]() [1/2]
Bracket array access operator.
- Parameters
-
| Index | Position of element to return. |
- Returns
- Reference to element in array at given position.
◆ operator[]() [2/2]
Bracket array access operator.
Const version.
- Parameters
-
| Index | Position of element to return. |
- Returns
- Reference to element in array at given position.
◆ RemoveAt() [1/3]
Removes an element at given location optionally shrinking the array.
- Parameters
-
| Index | Location in array of the element to remove. |
| AllowShrinking | (Optional) By default, arrays with large amounts of slack will automatically shrink. Use FNonshrinkingAllocator or pass EAllowShrinking::No to prevent this. |
◆ RemoveAt() [2/3]
◆ RemoveAt() [3/3]
Removes elements at given location optionally shrinking the array.
- Parameters
-
| Index | Location in array of the first element to remove. |
| Count | Number of elements to remove. |
| AllowShrinking | (Optional) By default, arrays with large amounts of slack will automatically shrink. Use FNonshrinkingAllocator or pass EAllowShrinking::No to prevent this. |
◆ RemoveAtSwap() [1/3]
Removes an element at given location optionally shrinking the array.
This version is much more efficient than RemoveAt (O(Count) instead of O(ArrayNum)), but does not preserve the order.
- Parameters
-
| Index | Location in array of the element to remove. |
| AllowShrinking | (Optional) By default, arrays with large amounts of slack will automatically shrink. Use FNonshrinkingAllocator or pass EAllowShrinking::No to prevent this. |
◆ RemoveAtSwap() [2/3]
◆ RemoveAtSwap() [3/3]
Removes elements at given location optionally shrinking the array.
This version is much more efficient than RemoveAt (O(Count) instead of O(ArrayNum)), but does not preserve the order.
- Parameters
-
| Index | Location in array of the rirst element to remove. |
| Count | Number of elements to remove. |
| AllowShrinking | (Optional) By default, arrays with large amounts of slack will automatically shrink. Use FNonshrinkingAllocator or pass EAllowShrinking::No to prevent this. |
◆ Reserve()
Reserves memory such that the array can contain at least Number elements.
- Parameters
-
| Number | The number of elements that the array should be able to contain after allocation. |
◆ Reset()
Resets the array to the new given size. It calls the destructors on held items.
- Parameters
-
| NewSize | (Optional) The expected usage size after calling this function. Default is 0. |
◆ Serialize()
Special serialize function passing the owning UObject along as required by FUnytpedBulkData serialization.
- Parameters
-
| Ar | Archive to serialize with. |
| Owner | UObject this structure is serialized within. |
◆ Shrink()
Shrinks the array's used memory to smallest possible to store elements currently in it.
◆ Swap()
Element-wise array element swap.
This version is doing more sanity checks than SwapMemory.
- Parameters
-
| FirstIndexToSwap | Position of the first element to swap. |
| SecondIndexToSwap | Position of the second element to swap. |
The documentation for this class was generated from the following file: