Navigation
Unreal Engine C++ API Reference > Runtime > CoreUObject > UObject
Inheritance Hierarchy
- FScriptSetHelper
- FScriptSetHelper_InContainer
References
Module | CoreUObject |
Header | /Engine/Source/Runtime/CoreUObject/Public/UObject/UnrealType.h |
Include | #include "UObject/UnrealType.h" |
Syntax
class FScriptSetHelper
Remarks
FScriptSetHelper: Pseudo dynamic Set. Used to work with Set properties in a sensible way.
Variables
Type | Name | Description | |
---|---|---|---|
![]() |
FProperty * | ElementProp | |
![]() |
FScriptSet * | Set | |
![]() |
FScriptSetLayout | SetLayout |
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
FScriptSetHelper
(
const FSetProperty* InProperty, |
Constructor, brings together a property and an instance of the property located in memory |
Functions
Type | Name | Description | |
---|---|---|---|
![]() |
int32 | Adds a blank, constructed value to a given size. | |
![]() |
void | AddElement
(
const void* ElementToAdd |
Adds the element to the set, returning true if the element was added, or false if the element was already present |
![]() |
int32 | Add an uninitialized value to the end of the set. | |
![]() ![]() |
FScriptSetHelper | CreateHelperFormElementProperty
(
FProperty* InElementProperty, |
|
![]() ![]() |
FScriptSetHelper::FIterator | ||
![]() |
void | EmptyElements
(
int32 Slack |
Remove all values from the set, calling destructors, etc as appropriate. |
![]() ![]() |
int32 | FindElementIndex
(
const void* ElementToFind, |
Finds the index of an element in a set |
![]() ![]() |
int32 | FindElementIndexFromHash
(
const void* ElementToFind |
Finds element index from hash, rather than linearly searching |
![]() |
uint8 * | FindElementPtr
(
const void* ElementToFind, |
Finds the pair in a map which matches the key in another pair. |
![]() |
uint8 * | FindElementPtrFromHash
(
const void* ElementToFind |
Finds element pointer from hash, rather than linearly searching |
![]() ![]() |
int32 | FindInternalIndex
(
int32 LogicalIdx |
Maps have gaps in their indices, so this function translates a logical index (ie. Nth element) to an internal index that can be used for the other functions in this class. |
![]() ![]() |
const uint8 * | FindNthElementPtr
(
int32 N |
Returns a uint8 pointer to the the Nth valid element in the set (skipping invalid entries). |
![]() |
uint8 * | FindNthElementPtr
(
int32 N |
Returns a uint8 pointer to the the Nth valid element in the set (skipping invalid entries). |
![]() ![]() |
FProperty * | Returns the property representing the element of the set | |
![]() ![]() |
const uint8 * | GetElementPtr
(
int32 Index |
Returns a uint8 pointer to the element in the set. |
![]() |
uint8 * | GetElementPtr
(
int32 Index |
Returns a uint8 pointer to the element in the set. |
![]() ![]() |
int32 | GetMaxIndex () |
Returns the (non-inclusive) maximum index of elements in the set. |
![]() ![]() |
bool | IsValidIndex
(
int32 Index |
Index range check |
![]() |
void | MoveAssign
(
void* InOtherSet |
Move the allocation from another set and make it our own. |
![]() ![]() |
int32 | Num () |
Returns the number of elements in the set. |
![]() ![]() |
int32 | Num
(
const void* Target |
Static version of Num() used when you don't need to bother to construct a FScriptSetHelper. |
![]() |
void | Rehash () |
Rehashes the keys in the set. This function must be called to create a valid set. |
![]() |
void | RemoveAt
(
int32 Index, |
Removes an element at the specified index, destroying it. |
![]() |
bool | RemoveElement
(
const void* ElementToRemove |
Removes the element from the set |
Classes
Type | Name | Description | |
---|---|---|---|
![]() |
FIterator |