|
Apparatus
Version 1.3.0
ECS data-driven workflow for Unreal Engine.
|
Runtime-safe container for structs. More...
#include <ScriptStructArray.h>
Public Member Functions | |
| UScriptStruct * | GetElementType () const |
| Get the type of the elements in the array. More... | |
| int32 | GetElementSize () const |
| Get the size of a single element. More... | |
| int32 | Num () const |
| Get the current number of elements in the array. More... | |
| int32 | Max () const |
| Get the maximum number of elements that can be stored in the array without any additional allocations. More... | |
| void * | At (const int32 Index) const |
| Get an element data at specified index. More... | |
| void * | operator[] (const int32 Index) const |
| Get an element data at specified index. More... | |
| bool | Reserve (const int32 InCapacity) |
| Reserve the space for a certain amount of elements. More... | |
| void * | AppendDefaulted () |
| Append a new struct element with default-initialized value. More... | |
| void * | AppendDefaulted (const int32 InCount) |
| Append several new struct elements with default-initialized values. More... | |
| void | Reset (const int32 InCapacity=0) |
| Clear the array without changing the allocated space, but only if the passed capacity is not larger than the present one. More... | |
| void | Pop (const int32 InCount=1, bool bAllowShrinking=true) |
| Remove the elements from the end of the container. More... | |
| void | Set (UScriptStruct *InElementType, const int32 InCapacity=0) |
| Set the container with an element type and a capacity. More... | |
| void | Set (const FScriptStructArray &Array) |
| FScriptStructArray () | |
| FScriptStructArray (UScriptStruct *InElementType, int32 InCapacity=0) | |
| FScriptStructArray (const FScriptStructArray &Array) | |
| FScriptStructArray (FScriptStructArray &&Array) | |
| Construct with moving an array. More... | |
| ~FScriptStructArray () | |
| EApparatusStatus | CopyElementTo (const int32 ElementIndex, void *const OutData, const bool bDataInitialized=true) const |
| Copies an element at a specific index to a struct data. More... | |
| FScriptStructArray & | operator= (FScriptStructArray &&Array) |
| Move an array. More... | |
| void | SetElementAt (const int32 ElementIndex, const void *const InData) |
| Sets an element at a specific index to an initialized struct data. More... | |
| void | Swap (const int32 FirstIndexToSwap, const int32 SecondIndexToSwap) |
| Swap two elements in the array. More... | |
| void | ClearElementAt (const int32 ElementIndex) |
| Clears an element at a specific index by finalizing and initializing it again. More... | |
| FScriptStructArray & | operator= (const FScriptStructArray &Array) |
| Set the array to an another one. More... | |
Runtime-safe container for structs.
|
inline |
|
inline |
|
inline |
|
inline |
Construct with moving an array.
|
inline |
|
inline |
Append a new struct element with default-initialized value.
|
inline |
Append several new struct elements with default-initialized values.
|
inline |
Get an element data at specified index.
| Index | The index of an element to get the data of. |
|
inline |
Clears an element at a specific index by finalizing and initializing it again.
| ElementIndex | The index of an element to clear. |
|
inline |
Copies an element at a specific index to a struct data.
| ElementIndex | The index of an element to copy. |
| OutData | A receiving struct data. |
| bDataInitialized | Is the receiving data actually initialized? |
|
inline |
Get the size of a single element.
|
inline |
Get the type of the elements in the array.
|
inline |
Get the maximum number of elements that can be stored in the array without any additional allocations.
|
inline |
Get the current number of elements in the array.
|
inline |
Set the array to an another one.
| Array | An array to copy. |
|
inline |
Move an array.
|
inline |
Get an element data at specified index.
| Index | The index of an element to get the data of. |
|
inline |
Remove the elements from the end of the container.
| InCount | The number of elements to remove. |
| bAllowShrinking | Is capacity shrinking allowed? |
|
inline |
Reserve the space for a certain amount of elements.
| InCapacity | The new capacity to guarantee. |
|
inline |
Clear the array without changing the allocated space, but only if the passed capacity is not larger than the present one.
| InCapacity | The new capacity to guarantee. |
|
inline |
|
inline |
Set the container with an element type and a capacity.
| InElementType | The new element type. |
| InCapacity | The new capacity to guarantee. |
|
inline |
Sets an element at a specific index to an initialized struct data.
| ElementIndex | The index of an element to set. |
| InData | An initialized struct data to set with. |
|
inline |
Swap two elements in the array.