Static Public Member Functions | |
static bool | ArrayHasAny (const TArray< UProperty * > &Array) |
Checks if an array has any elements. More... | |
static bool | ArrayIsEmpty (const TArray< UProperty * > &Array) |
Checks if an array does not have any elements. More... | |
static void | ArraySample (const TArray< int32 > &Array, int32 &Item) |
Selects a random element from the given array. More... | |
static bool | ArrayTryGet (const TArray< int32 > &Array, const int32 Index, int32 &Item) |
Tries to get an element from the array, can fail without throwing an error. More... | |
static TArray< UObject * > | ObjectArrayFilter (const TArray< UObject * > &Array, const FObjectArrayFilterDelegate &Callback) |
Filters an array using the given delegate function Filter function signature is UObject* -> bool where the item is retained if the function returns true. More... | |
|
static |
Checks if an array has any elements.
Array | The array to check |
|
static |
Checks if an array does not have any elements.
Array | The array to check |
|
static |
Selects a random element from the given array.
Returns NULL if the array is empty.
Array | The array to sample from |
Item | The randomly chosen element |
|
static |
Tries to get an element from the array, can fail without throwing an error.
Returns NULL if the index is invalid.
Array | The array to sample from |
Index | The index to try to use |
Item | The element at that index if valid, or NULL |
Success | True if the index was valid |
|
static |
Filters an array using the given delegate function Filter function signature is UObject* -> bool
where the item is retained if the function returns true.
Array | The array to sample from |
Callback | The filter function |