Navigation
API > API/Runtime > API/Runtime/CoreUObject > API/Runtime/CoreUObject/UObject
Inheritance Hierarchy
- FScriptSetHelper
- FPropertyBagSetRef
- 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. Note that the set can contain invalid entries some number of valid entries (i.e. Num() ) can be smaller that the actual number of elements (i.e. GetMaxIndex() ).
Internal index naming is used to identify the actual index in the container which can point to an invalid entry. It can be used for methods like Get
Logical index naming is used to identify only valid entries in the container so it can be smaller than the internal index in case we skipped invalid entries to reach the next valid one. This index is used on method like FindNth
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, |
||
| FIterator | CreateIterator
(
const int32 InLogicalIndex |
||
| 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 |
Sets 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. | |
| int32 | FindLogicalIndex
(
int32 InternalIdx |
Sets have gaps in their indices, so this function translates a internal index to an logical index (ie. Nth element). | |
| 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
(
const FIterator Iterator |
Returns a uint8 pointer to the element in the set. | |
| uint8 * | GetElementPtr
(
const FIterator Iterator |
Returns a uint8 pointer to the element in the set. | |
| const uint8 * | GetElementPtr
(
int32 InternalIndex |
Returns a uint8 pointer to the element in the set. | |
| uint8 * | GetElementPtr
(
int32 InternalIndex |
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 InternalIndex |
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. | |
| int32 | NumUnchecked () |
Returns the number of elements in the set. | |
| void | Rehash () |
Rehashes the keys in the set. This function must be called to create a valid set. | |
| void | Removes an element at the specified index, destroying it. | ||
| bool | RemoveElement
(
const void* ElementToRemove |
Removes the element from the set |
Typedefs
| Name | Description |
|---|---|
| FIterator |