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

#include <SparseArray.h>

+ Collaboration diagram for FScriptSparseArray:

Classes

struct  FFreeListLink
 

Public Member Functions

 FScriptSparseArray ()
 
bool IsValidIndex (int32 Index) const
 
int32 Num () const
 
int32 GetMaxIndex () const
 
void * GetData (int32 Index, const FScriptSparseArrayLayout &Layout)
 
const void * GetData (int32 Index, const FScriptSparseArrayLayout &Layout) const
 
void Empty (int32 Slack, const FScriptSparseArrayLayout &Layout)
 
int32 AddUninitialized (const FScriptSparseArrayLayout &Layout)
 
void RemoveAtUninitialized (const FScriptSparseArrayLayout &Layout, int32 Index, int32 Count=1)
 
 FScriptSparseArray (const FScriptSparseArray &)
 
void operator= (const FScriptSparseArray &)
 

Static Public Member Functions

static FScriptSparseArrayLayout GetScriptLayout (int32 ElementSize, int32 ElementAlignment)
 

Private Member Functions

FORCEINLINE FFreeListLinkGetFreeListLink (int32 Index, const FScriptSparseArrayLayout &Layout)
 

Static Private Member Functions

static void CheckConstraints ()
 

Private Attributes

FScriptArray Data
 
FScriptBitArray AllocationFlags
 
int32 FirstFreeIndex
 
int32 NumFreeIndices
 

Detailed Description

Definition at line 900 of file SparseArray.h.

Constructor & Destructor Documentation

◆ FScriptSparseArray() [1/2]

FScriptSparseArray::FScriptSparseArray ( )
inline

Definition at line 913 of file SparseArray.h.

◆ FScriptSparseArray() [2/2]

FScriptSparseArray::FScriptSparseArray ( const FScriptSparseArray & )
inline

Definition at line 1059 of file SparseArray.h.

Member Function Documentation

◆ AddUninitialized()

int32 FScriptSparseArray::AddUninitialized ( const FScriptSparseArrayLayout & Layout)
inline

Adds an uninitialized object to the array.

Returns
The index of the added element.

Definition at line 958 of file SparseArray.h.

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

◆ CheckConstraints()

static void FScriptSparseArray::CheckConstraints ( )
inlinestaticprivate

Definition at line 1015 of file SparseArray.h.

+ Here is the call graph for this function:

◆ Empty()

void FScriptSparseArray::Empty ( int32 Slack,
const FScriptSparseArrayLayout & Layout )
inline

Definition at line 944 of file SparseArray.h.

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

◆ GetData() [1/2]

void * FScriptSparseArray::GetData ( int32 Index,
const FScriptSparseArrayLayout & Layout )
inline

Definition at line 934 of file SparseArray.h.

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

◆ GetData() [2/2]

const void * FScriptSparseArray::GetData ( int32 Index,
const FScriptSparseArrayLayout & Layout ) const
inline

Definition at line 939 of file SparseArray.h.

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

◆ GetFreeListLink()

FORCEINLINE FFreeListLink * FScriptSparseArray::GetFreeListLink ( int32 Index,
const FScriptSparseArrayLayout & Layout )
inlineprivate

Accessor for the element or free list data.

Definition at line 1051 of file SparseArray.h.

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

◆ GetMaxIndex()

int32 FScriptSparseArray::GetMaxIndex ( ) const
inline

Definition at line 929 of file SparseArray.h.

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

◆ GetScriptLayout()

static FScriptSparseArrayLayout FScriptSparseArray::GetScriptLayout ( int32 ElementSize,
int32 ElementAlignment )
inlinestatic

Definition at line 903 of file SparseArray.h.

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

◆ IsValidIndex()

bool FScriptSparseArray::IsValidIndex ( int32 Index) const
inline

Definition at line 919 of file SparseArray.h.

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

◆ Num()

int32 FScriptSparseArray::Num ( ) const
inline

Definition at line 924 of file SparseArray.h.

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

◆ operator=()

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

Definition at line 1060 of file SparseArray.h.

◆ RemoveAtUninitialized()

void FScriptSparseArray::RemoveAtUninitialized ( const FScriptSparseArrayLayout & Layout,
int32 Index,
int32 Count = 1 )
inline

Removes Count elements from the array, starting from Index, without destructing them.

Definition at line 985 of file SparseArray.h.

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

Member Data Documentation

◆ AllocationFlags

FScriptBitArray FScriptSparseArray::AllocationFlags
private

Definition at line 1010 of file SparseArray.h.

◆ Data

FScriptArray FScriptSparseArray::Data
private

Definition at line 1009 of file SparseArray.h.

◆ FirstFreeIndex

int32 FScriptSparseArray::FirstFreeIndex
private

Definition at line 1011 of file SparseArray.h.

◆ NumFreeIndices

int32 FScriptSparseArray::NumFreeIndices
private

Definition at line 1012 of file SparseArray.h.


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