FScriptSetHelper

[FScriptSetHelper](API\Runtime\CoreUObject\UObject\FScriptSetHelper): Pseudo dynamic Set.

Windows
MacOS
Linux

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

Name Description

Public variable

FProperty *

 

ElementProp

Public variable

FScriptSet *...

 

Set

Public variable

FScriptSetLayou...

 

SetLayout

Constructors

Name Description

Public function

FScriptSetHelper

(
    const FSetProperty* InProperty,
    const void* InSet
)

Constructor, brings together a property and an instance of the property located in memory

Functions

Name Description

Public function

int32

 

AddDefaultValue_Invalid_NeedsRehash()

Adds a blank, constructed value to a given size.

Public function

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

Public function

int32

 

AddUninitializedValue()

Add an uninitialized value to the end of the set.

Public function Static

FScriptSetHe...

 

CreateHelperFormElementProperty

(
    FProperty* InElementProperty,
    const void* InSet
)

Public function Const

FScriptSetHe...

 

CreateIterator()

Public function

void

 

EmptyElements

(
    int32 Slack
)

Remove all values from the set, calling destructors, etc as appropriate.

Public function Const

int32

 

FindElementIndex

(
    const void* ElementToFind,
    int32 IndexHint
)

Finds the index of an element in a set

Public function Const

int32

 

FindElementIndexFromHash

(
    const void* ElementToFind
)

Finds element index from hash, rather than linearly searching

Public function

uint8 *

 

FindElementPtr

(
    const void* ElementToFind,
    int32 IndexHint
)

Finds the pair in a map which matches the key in another pair.

Public function

uint8 *

 

FindElementPtrFromHash

(
    const void* ElementToFind
)

Finds element pointer from hash, rather than linearly searching

Public function Const

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.

Public function Const

FProperty &#...

 

GetElementProperty()

Returns the property representing the element of the set

Public function

uint8 *

 

GetElementPtr

(
    int32 Index
)

Returns a uint8 pointer to the element in the set.

Public function Const

const uint8 ...

 

GetElementPtr

(
    int32 Index
)

Returns a uint8 pointer to the element in the set.

Public function Const

int32

 

GetMaxIndex()

Returns the (non-inclusive) maximum index of elements in the set.

Public function Const

bool

 

HasElement

(
    void* InBaseAddress,
    const FString& InElementValue
)

Checks if an element has already been added to the set

Public function Const

bool

 

IsValidIndex

(
    int32 Index
)

Index range check

Public function

void

 

MoveAssign

(
    void* InOtherSet
)

Move the allocation from another set and make it our own.

Public function Const

int32

 

Num()

Returns the number of elements in the set.

Public function Static

int32

 

Num

(
    const void* Target
)

Static version of Num() used when you don't need to bother to construct a FScriptSetHelper.

Public function

void

 

Rehash()

Rehashes the keys in the set. This function must be called to create a valid set.

Public function

void

 

RemoveAt

(
    int32 Index,
    int32 Count
)

Removes an element at the specified index, destroying it.

Public function

bool

 

RemoveElement

(
    const void* ElementToRemove
)

Removes the element from the set

Classes

Name

Description

Public class

FIterator

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss