Ark Server API (ASE) - Wiki
Loading...
Searching...
No Matches
FScriptSet Class Reference

#include <Set.h>

+ Collaboration diagram for FScriptSet:

Public Member Functions

 FScriptSet ()
 
bool IsValidIndex (int32 Index) const
 
int32 Num () const
 
int32 GetMaxIndex () const
 
void * GetData (int32 Index, const FScriptSetLayout &Layout)
 
const void * GetData (int32 Index, const FScriptSetLayout &Layout) const
 
void Empty (int32 Slack, const FScriptSetLayout &Layout)
 
void RemoveAt (int32 Index, const FScriptSetLayout &Layout)
 
int32 AddUninitialized (const FScriptSetLayout &Layout)
 
void Rehash (const FScriptSetLayout &Layout, TFunctionRef< uint32(const void *)> GetKeyHash)
 
int32 FindIndex (const void *Element, const FScriptSetLayout &Layout, TFunctionRef< uint32(const void *)> GetKeyHash, TFunctionRef< bool(const void *, const void *)> EqualityFn)
 
void Add (const void *Element, const FScriptSetLayout &Layout, TFunctionRef< uint32(const void *)> GetKeyHash, TFunctionRef< bool(const void *, const void *)> EqualityFn, TFunctionRef< void(void *)> ConstructFn, TFunctionRef< void(void *)> DestructFn)
 
 FScriptSet (const FScriptSet &)
 
void operator= (const FScriptSet &)
 

Static Public Member Functions

static FScriptSetLayout GetScriptLayout (int32 ElementSize, int32 ElementAlignment)
 

Private Types

typedef FDefaultSetAllocator Allocator
 
typedef Allocator::HashAllocator::ForElementType< FSetElementIdHashType
 

Private Member Functions

FORCEINLINE FSetElementIdGetTypedHash (int32 HashIndex) const
 

Static Private Member Functions

static FSetElementIdGetHashNextIdRef (const void *Element, const FScriptSetLayout &Layout)
 
static int32GetHashIndexRef (const void *Element, const FScriptSetLayout &Layout)
 
static void CheckConstraints ()
 

Private Attributes

FScriptSparseArray Elements
 
HashType Hash
 
int32 HashSize
 

Detailed Description

Definition at line 1218 of file Set.h.

Member Typedef Documentation

◆ Allocator

Definition at line 1427 of file Set.h.

◆ HashType

typedef Allocator::HashAllocator::ForElementType<FSetElementId> FScriptSet::HashType
private

Definition at line 1428 of file Set.h.

Constructor & Destructor Documentation

◆ FScriptSet() [1/2]

FScriptSet::FScriptSet ( )
inline

Definition at line 1236 of file Set.h.

◆ FScriptSet() [2/2]

FScriptSet::FScriptSet ( const FScriptSet & )
inline

Definition at line 1473 of file Set.h.

Member Function Documentation

◆ Add()

void FScriptSet::Add ( const void * Element,
const FScriptSetLayout & Layout,
TFunctionRef< uint32(const void *)> GetKeyHash,
TFunctionRef< bool(const void *, const void *)> EqualityFn,
TFunctionRef< void(void *)> ConstructFn,
TFunctionRef< void(void *)> DestructFn )
inline

Definition at line 1385 of file Set.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ AddUninitialized()

int32 FScriptSet::AddUninitialized ( const FScriptSetLayout & Layout)
inline

Adds an uninitialized object to the set. The set will need rehashing at some point after this call to make it valid.

Returns
The index of the added element.

Definition at line 1313 of file Set.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ CheckConstraints()

static void FScriptSet::CheckConstraints ( )
inlinestaticprivate

Definition at line 1450 of file Set.h.

+ Here is the call graph for this function:

◆ Empty()

void FScriptSet::Empty ( int32 Slack,
const FScriptSetLayout & Layout )
inline

Definition at line 1266 of file Set.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FindIndex()

int32 FScriptSet::FindIndex ( const void * Element,
const FScriptSetLayout & Layout,
TFunctionRef< uint32(const void *)> GetKeyHash,
TFunctionRef< bool(const void *, const void *)> EqualityFn )
inline

Definition at line 1362 of file Set.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetData() [1/2]

void * FScriptSet::GetData ( int32 Index,
const FScriptSetLayout & Layout )
inline

Definition at line 1256 of file Set.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetData() [2/2]

const void * FScriptSet::GetData ( int32 Index,
const FScriptSetLayout & Layout ) const
inline

Definition at line 1261 of file Set.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetHashIndexRef()

static int32 & FScriptSet::GetHashIndexRef ( const void * Element,
const FScriptSetLayout & Layout )
inlinestaticprivate

Definition at line 1444 of file Set.h.

+ Here is the caller graph for this function:

◆ GetHashNextIdRef()

static FSetElementId & FScriptSet::GetHashNextIdRef ( const void * Element,
const FScriptSetLayout & Layout )
inlinestaticprivate

Definition at line 1439 of file Set.h.

+ Here is the caller graph for this function:

◆ GetMaxIndex()

int32 FScriptSet::GetMaxIndex ( ) const
inline

Definition at line 1251 of file Set.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetScriptLayout()

static FScriptSetLayout FScriptSet::GetScriptLayout ( int32 ElementSize,
int32 ElementAlignment )
inlinestatic

Definition at line 1221 of file Set.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetTypedHash()

FORCEINLINE FSetElementId & FScriptSet::GetTypedHash ( int32 HashIndex) const
inlineprivate

Definition at line 1434 of file Set.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ IsValidIndex()

bool FScriptSet::IsValidIndex ( int32 Index) const
inline

Definition at line 1241 of file Set.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Num()

int32 FScriptSet::Num ( ) const
inline

Definition at line 1246 of file Set.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ operator=()

void FScriptSet::operator= ( const FScriptSet & )
inline

Definition at line 1474 of file Set.h.

◆ Rehash()

void FScriptSet::Rehash ( const FScriptSetLayout & Layout,
TFunctionRef< uint32(const void *)> GetKeyHash )
inline

Definition at line 1319 of file Set.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ RemoveAt()

void FScriptSet::RemoveAt ( int32 Index,
const FScriptSetLayout & Layout )
inline

Definition at line 1289 of file Set.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ Elements

FScriptSparseArray FScriptSet::Elements
private

Definition at line 1430 of file Set.h.

◆ Hash

HashType FScriptSet::Hash
mutableprivate

Definition at line 1431 of file Set.h.

◆ HashSize

int32 FScriptSet::HashSize
mutableprivate

Definition at line 1432 of file Set.h.


The documentation for this class was generated from the following file: