Navigation
API > API/Runtime > API/Runtime/Core
Untyped set type for accessing TSet data, like FScriptArray for TArray. Must have the same memory representation as a TSet.
| Name | TScriptSet |
| Type | class |
| Header File | /Engine/Source/Runtime/Core/Public/Containers/Set.h |
| Include Path | #include "Containers/Set.h" |
Syntax
template<typename Allocator, typename InDerivedType>
class TScriptSet
Derived Classes
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Containers/Set.h | |||
TScriptSet () |
Containers/Set.h | ||
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. | Containers/Set.h |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| DerivedType | std::conditional_t< std::is_void_v< InDerivedType >, TScriptSet, InDerivedType > | Containers/Set.h | |
| ElementArrayType | TScriptSparseArray< typename Allocator::SparseArrayAllocator > | Containers/Set.h | |
| HashType | Allocator::HashAllocator::template ForElementType< FSetElementId > | Containers/Set.h | |
| IntrusiveUnsetOptionalStateType | TScriptSet | Containers/Set.h |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| bHasIntrusiveUnsetOptionalState | bool | Start - intrusive TOptional |
Containers/Set.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Elements | ElementArrayType | Containers/Set.h | ||
| Hash | HashType | Containers/Set.h | ||
| HashSize | int32 | Containers/Set.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Add
(
const void* Element, |
Containers/Set.h | ||
int32 AddUninitialized
(
const FScriptSetLayout& Layout |
Adds an uninitialized object to the set. | Containers/Set.h | |
void Empty
(
int32 Slack, |
Containers/Set.h | ||
int32 FindIndex
(
const void* Element, |
Containers/Set.h | ||
int32 FindIndexByHash
(
const void* Element, |
Containers/Set.h | ||
int32 FindOrAdd
(
const void* Element, |
Containers/Set.h | ||
const void * GetData
(
int32 Index, |
Containers/Set.h | ||
void * GetData
(
int32 Index, |
Containers/Set.h | ||
int32 GetMaxIndex() |
Containers/Set.h | ||
bool IsEmpty() |
Containers/Set.h | ||
bool IsValidIndex
(
int32 Index |
End - intrusive TOptional |
Containers/Set.h | |
void MoveAssign
(
DerivedType& Other, |
Containers/Set.h | ||
int32 Num() |
Containers/Set.h | ||
int32 NumUnchecked() |
Containers/Set.h | ||
void Rehash
(
const FScriptSetLayout& Layout, |
Containers/Set.h | ||
void RemoveAt
(
int32 Index, |
Containers/Set.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static void CheckConstraints() |
This function isn't intended to be called, just to be compiled to validate the correctness of the type. | Containers/Set.h | |
static int32 & GetHashIndexRef
(
const void* Element, |
Containers/Set.h | ||
static FSetElementId & GetHashNextIdRef
(
const void* Element, |
Containers/Set.h | ||
static FScriptSetLayout GetScriptLayout
(
int32 ElementSize, |
Containers/Set.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void operator=
(
const TScriptSet& |
Containers/Set.h | ||
bool operator==
(
FIntrusiveUnsetOptionalState Tag |
Containers/Set.h |