#include <UnrealType.h>
FScriptArrayHelper: Pseudo dynamic array. Used to work with array properties in a sensible way.
◆ FScriptArrayHelper()
Constructor, brings together a property and an instance of the property located in memory
- Parameters
-
| InProperty | the property associated with this memory |
| InArray | pointer to raw memory that corresponds to this array. This can be NULL, and sometimes is, but in that case almost all operations will crash. |
◆ AddUninitializedValue()
Add an uninitialized value to the end of the array.
- Returns
- the index of the newly added item.
◆ AddUninitializedValues()
| int32 FScriptArrayHelper::AddUninitializedValues |
( |
int32 |
Count | ) |
|
|
inline |
Add uninitialized values to the end of the array.
- Parameters
-
| Count | the number of items to insert. |
- Returns
- the index of the first newly added item.
◆ AddValue()
Add a blank, constructed values to the end of the array.
- Returns
- the index of the newly added item.
◆ AddValues()
| int32 FScriptArrayHelper::AddValues |
( |
int32 |
Count | ) |
|
|
inline |
Add blank, constructed values to the end of the array.
- Parameters
-
| Count | the number of items to insert. |
- Returns
- the index of the first newly added item.
◆ ClearValues()
Clear values in the array. The meaning of clear is defined by the property system.
- Parameters
-
| Index | first item to clear. |
| Count | number of items to clear. |
◆ CountBytes()
Used by memory counting archives to accumulate the size of this array.
- Parameters
-
| Ar | archive to accumulate sizes |
◆ CreateHelperFormInnerProperty()
◆ DestroyContainer_Unsafe()
| void FScriptArrayHelper::DestroyContainer_Unsafe |
( |
| ) |
|
|
inline |
Destroys the container object - THERE SHOULD BE NO MORE USE OF THIS HELPER AFTER THIS FUNCTION IS CALLED!
◆ EmptyAndAddUninitializedValues()
| void FScriptArrayHelper::EmptyAndAddUninitializedValues |
( |
int32 |
Count | ) |
|
|
inline |
Empty the array, then add uninitialized values to a given size.
- Parameters
-
| Count | the number of items the array will have on completion. |
◆ EmptyAndAddValues()
| void FScriptArrayHelper::EmptyAndAddValues |
( |
int32 |
Count | ) |
|
|
inline |
Empty the array, then add blank, constructed values to a given size.
- Parameters
-
| Count | the number of items the array will have on completion. |
◆ EmptyValues()
| void FScriptArrayHelper::EmptyValues |
( |
int32 |
Slack = 0 | ) |
|
|
inline |
Remove all values from the array, calling destructors, etc as appropriate.
- Parameters
-
| Slack | used to presize the array for a subsequent add, to avoid reallocation. |
◆ ExpandForIndex()
| bool FScriptArrayHelper::ExpandForIndex |
( |
int32 |
Index | ) |
|
|
inline |
Expand the array, if needed, so that the given index is valid
- Parameters
-
| Index | index for the item that we want to ensure is valid |
- Returns
- true if expansion was necessary NOTE: This is not a count, it is an INDEX, so the final count will be at least Index+1 this matches the usage.
◆ GetElementPtr()
Returns a uint8 pointer to an element in the array. This call is identical to GetRawPtr and is here to provide interface parity with FScriptSetHelper*.
- Parameters
-
| Index | index of the item to return a pointer to. |
- Returns
- Pointer to this element, or NULL if the array is empty
◆ GetRawPtr()
| uint8 * FScriptArrayHelper::GetRawPtr |
( |
int32 |
Index = 0 | ) |
|
|
inline |
Returns a uint8 pointer to an element in the array
- Parameters
-
| Index | index of the item to return a pointer to. |
- Returns
- Pointer to this element, or NULL if the array is empty
◆ InsertValues()
| void FScriptArrayHelper::InsertValues |
( |
int32 |
Index, |
|
|
int32 |
Count = 1 |
|
) |
| |
|
inline |
Insert blank, constructed values into the array.
- Parameters
-
| Index | index of the first inserted item after completion |
| Count | the number of items to insert. |
◆ IsValidIndex()
Index range check
- Parameters
-
- Returns
- true if accessing this element is legal.
◆ MoveAssign()
| void FScriptArrayHelper::MoveAssign |
( |
void * |
InOtherArray | ) |
|
|
inline |
Move the allocation from another array and make it our own.
- Note
- The arrays MUST be of the same type, and this function will NOT validate that!
- Parameters
-
| InOtherArray | The array to move the allocation from. |
◆ Num()
| int32 FScriptArrayHelper::Num |
( |
| ) |
const |
|
inline |
Return the number of elements in the array.
- Returns
- The number of elements in the array.
◆ NumUnchecked()
| int32 FScriptArrayHelper::NumUnchecked |
( |
| ) |
const |
|
inline |
Return the number of elements in the array without validating the state of the array. Needed to allow reading of the num when the array is 'invalid' during its intrusive unset state.
- Returns
- The number of elements in the array.
◆ RemoveValues()
| void FScriptArrayHelper::RemoveValues |
( |
int32 |
Index, |
|
|
int32 |
Count = 1 |
|
) |
| |
|
inline |
Remove values from the array, calling destructors, etc as appropriate.
- Parameters
-
| Index | first item to remove. |
| Count | number of items to remove. |
◆ Resize()
| void FScriptArrayHelper::Resize |
( |
int32 |
Count | ) |
|
|
inline |
Add or remove elements to set the array to a given size.
- Parameters
-
| Count | the number of items the array will have on completion. |
◆ SwapValues()
Swap two elements in the array, does not call constructors and destructors
- Parameters
-
| A | index of one item to swap. |
| B | index of the other item to swap. |
◆ FreezableArray
◆ HeapArray
The documentation for this class was generated from the following file:
- Engine/Source/Runtime/CoreUObject/Public/UObject/UnrealType.h