TScriptSet

Untyped set type for accessing [TSet](API\Runtime\Core\Containers\TSet) data, like [FScriptArray](API\Runtime\Core\Containers\FScriptArray) for [TArray](API\Runtime\Core\Containers\TArray).

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

TScriptSet

FScriptSet

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Containers/Set.h

Include

#include "Containers/Set.h"

Syntax

template<typename Allocator, typename InDerivedType>
class TScriptSet

Remarks

Untyped set type for accessing TSet data, like FScriptArray for TArray. Must have the same memory representation as a TSet.

Constructors

Name Description

Public function

TScriptSet()

Public function

TScriptSet

(
    const TScriptSet&
)

These should really be private, because they shouldn't be called, but there's a bunch of code that needs to be fixed first.

Functions

Name Description

Public function

void

 

Add

(
    const void* Element,
    const FScriptSetLayout& Layout,
    TFunctionRef< uint32...,
    TFunctionRef< bool*...,
    TFunctionRef< void*)> Con...,
    TFunctionRef< void*)> Des...
)

Public function

int32

 

AddUninitialized

(
    const FScriptSetLayout& Layout
)

Adds an uninitialized object to the set.

Public function

void

 

Empty

(
    int32 Slack,
    const FScriptSetLayout& Layout
)

Public function

int32

 

FindIndex

(
    const void* Element,
    const FScriptSetLayout& Layout,
    TFunctionRef< uint32...,
    TFunctionRef< bool*...
)

Public function

int32

 

FindIndexByHash

(
    const void* Element,
    const FScriptSetLayout& Layout,
    uint32 KeyHash,
    TFunctionRef< bool*...
)

Public function

int32

 

FindOrAdd

(
    const void* Element,
    const FScriptSetLayout& Layout,
    TFunctionRef< uint32...,
    TFunctionRef< bool*...,
    TFunctionRef< void*)> Con...
)

Public function Const

const void &...

 

GetData

(
    int32 Index,
    const FScriptSetLayout& Layout
)

Public function

void *

 

GetData

(
    int32 Index,
    const FScriptSetLayout& Layout
)

Public function Const

int32

 

GetMaxIndex()

Public function Static

FScriptSetLa...

 

GetScriptLayout

(
    int32 ElementSize,
    int32 ElementAlignment
)

Public function Const

bool

 

IsEmpty()

Public function Const

bool

 

IsValidIndex

(
    int32 Index
)

Public function

void

 

MoveAssign

(
    DerivedType& Other,
    const FScriptSetLayout& Layout
)

Public function Const

int32

 

Num()

Public function

void

 

Rehash

(
    const FScriptSetLayout& Layout,
    TFunctionRef< uint32...
)

Public function

void

 

RemoveAt

(
    int32 Index,
    const FScriptSetLayout& Layout
)

Operators

Name Description

Public function

void

 

operator=

(
    const TScriptSet&
)

Typedefs