FScriptArrayHelper: Pseudo dynamic array. 更多...
#include <UnrealType.h>
被 FScriptArrayHelper_InContainer 继承.
Public 成员函数 | |
| FORCEINLINE int32 | AddUninitializedValue () |
| Add an uninitialized value to the end of the array. 更多... | |
| int32 | AddUninitializedValues (int32 Count) |
| Add uninitialized values to the end of the array. 更多... | |
| FORCEINLINE int32 | AddValue () |
| Add a blank, constructed values to the end of the array. 更多... | |
| int32 | AddValues (int32 Count) |
| Add blank, constructed values to the end of the array. 更多... | |
| void | ClearValues (int32 Index, int32 Count=1) |
| Clear values in the array. 更多... | |
| void | CountBytes (FArchive &Ar) const |
| Used by memory counting archives to accumulate the size of this array. 更多... | |
| void | DestroyContainer_Unsafe () |
| Destroys the container object - THERE SHOULD BE NO MORE USE OF THIS HELPER AFTER THIS FUNCTION IS CALLED! | |
| void | EmptyAndAddUninitializedValues (int32 Count) |
| Empty the array, then add uninitialized values to a given size. 更多... | |
| void | EmptyAndAddValues (int32 Count) |
| Empty the array, then add blank, constructed values to a given size. 更多... | |
| void | EmptyValues (int32 Slack=0) |
| Remove all values from the array, calling destructors, etc as appropriate. 更多... | |
| bool | ExpandForIndex (int32 Index) |
| Expand the array, if needed, so that the given index is valid 更多... | |
| FORCEINLINE | FScriptArrayHelper (const FArrayProperty *InProperty, const void *InArray) |
| Constructor, brings together a property and an instance of the property located in memory 更多... | |
| FORCEINLINE uint8 * | GetRawPtr (int32 Index=0) |
| Returns a uint8 pointer to an element in the array 更多... | |
| void | InsertValues (int32 Index, int32 Count=1) |
| Insert blank, constructed values into the array. 更多... | |
| FORCEINLINE bool | IsValidIndex (int32 Index) const |
| Index range check 更多... | |
| void | MoveAssign (void *InOtherArray) |
| Move the allocation from another array and make it our own. 更多... | |
| FORCEINLINE int32 | Num () const |
| Return the number of elements in the array. 更多... | |
| void | RemoveValues (int32 Index, int32 Count=1) |
| Remove values from the array, calling destructors, etc as appropriate. 更多... | |
| void | Resize (int32 Count) |
| Add or remove elements to set the array to a given size. 更多... | |
| void | SwapValues (int32 A, int32 B) |
| Swap two elements in the array, does not call constructors and destructors 更多... | |
静态 Public 成员函数 | |
| static FORCEINLINE int32 | Num (const void *Target) |
| Static version of Num() used when you don't need to bother to construct a FScriptArrayHelper. 更多... | |
FScriptArrayHelper: Pseudo dynamic array.
Used to work with array properties in a sensible way.
|
inline |
Constructor, brings together a property and an instance of the property located in memory
| 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. |
|
inline |
Add an uninitialized value to the end of the array.
|
inline |
Add uninitialized values to the end of the array.
| Count | the number of items to insert. |
|
inline |
Add a blank, constructed values to the end of the array.
|
inline |
Add blank, constructed values to the end of the array.
| Count | the number of items to insert. |
|
inline |
Clear values in the array.
The meaning of clear is defined by the property system.
| Index | first item to clear. |
| Count | number of items to clear. |
|
inline |
Used by memory counting archives to accumulate the size of this array.
| Ar | archive to accumulate sizes |
|
inline |
Empty the array, then add uninitialized values to a given size.
| Count | the number of items the array will have on completion. |
|
inline |
Empty the array, then add blank, constructed values to a given size.
| Count | the number of items the array will have on completion. |
|
inline |
Remove all values from the array, calling destructors, etc as appropriate.
| Slack | used to presize the array for a subsequent add, to avoid reallocation. |
|
inline |
Expand the array, if needed, so that the given index is valid
| Index | index for the item that we want to ensure is valid |
|
inline |
Returns a uint8 pointer to an element in the array
| Index | index of the item to return a pointer to. |
|
inline |
Insert blank, constructed values into the array.
| Index | index of the first inserted item after completion |
| Count | the number of items to insert. |
|
inline |
Index range check
| Index | Index to check |
|
inline |
Move the allocation from another array and make it our own.
| InOtherArray | The array to move the allocation from. |
|
inline |
Return the number of elements in the array.
|
inlinestatic |
Static version of Num() used when you don't need to bother to construct a FScriptArrayHelper.
Returns the number of elements in the array.
| Target | pointer to the raw memory associated with a FScriptArray |
|
inline |
Remove values from the array, calling destructors, etc as appropriate.
| Index | first item to remove. |
| Count | number of items to remove. |
|
inline |
Add or remove elements to set the array to a given size.
| Count | the number of items the array will have on completion. |
|
inline |
Swap two elements in the array, does not call constructors and destructors
| A | index of one item to swap. |
| B | index of the other item to swap. |