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

#include <ScriptArray.h>

+ Inheritance diagram for FScriptArray:
+ Collaboration diagram for FScriptArray:

Public Member Functions

FORCEINLINE void * GetData ()
 
FORCEINLINE const void * GetData () const
 
FORCEINLINE bool IsValidIndex (int32 i) const
 
FORCEINLINE int32 Num () const
 
void InsertZeroed (int32 Index, int32 Count, int32 NumBytesPerElement)
 
void Insert (int32 Index, int32 Count, int32 NumBytesPerElement)
 
int32 Add (int32 Count, int32 NumBytesPerElement)
 
int32 AddZeroed (int32 Count, int32 NumBytesPerElement)
 
void Shrink (int32 NumBytesPerElement)
 
void Empty (int32 Slack, int32 NumBytesPerElement)
 
 FScriptArray ()
 
FORCEINLINE int32 GetSlack () const
 
void Remove (int32 Index, int32 Count, int32 NumBytesPerElement)
 
 FScriptArray (const FScriptArray &)
 
void operator= (const FScriptArray &)
 

Protected Member Functions

 FScriptArray (int32 InNum, int32 NumBytesPerElement)
 
FORCENOINLINE void ResizeInit (int32 NumBytesPerElement)
 
FORCENOINLINE void ResizeGrow (int32 OldNum, int32 NumBytesPerElement)
 
FORCENOINLINE void ResizeShrink (int32 NumBytesPerElement)
 
FORCENOINLINE void ResizeTo (int32 NewMax, int32 NumBytesPerElement)
 
- Protected Member Functions inherited from FHeapAllocator::ForAnyElementType
 ForAnyElementType ()
 
FORCEINLINE void MoveToEmpty (ForAnyElementType &Other)
 
FORCEINLINE ~ForAnyElementType ()
 
FORCEINLINE FScriptContainerElementGetAllocation () const
 
FORCEINLINE void ResizeAllocation (int32 PreviousNumElements, int32 NumElements, SIZE_T NumBytesPerElement)
 
FORCEINLINE int32 CalculateSlackReserve (int32 NumElements, int32 NumBytesPerElement) const
 
FORCEINLINE int32 CalculateSlackShrink (int32 NumElements, int32 NumAllocatedElements, int32 NumBytesPerElement) const
 
FORCEINLINE int32 CalculateSlackGrow (int32 NumElements, int32 NumAllocatedElements, int32 NumBytesPerElement) const
 
SIZE_T GetAllocatedSize (int32 NumAllocatedElements, SIZE_T NumBytesPerElement) const
 
bool HasAllocation ()
 

Protected Attributes

int32 ArrayNum
 
int32 ArrayMax
 

Detailed Description

Base dynamic array. An untyped data array; mirrors a TArray's members, but doesn't need an exact C++ type for its elements.

Definition at line 13 of file ScriptArray.h.

Constructor & Destructor Documentation

◆ FScriptArray() [1/3]

FScriptArray::FScriptArray ( )
inline

Definition at line 99 of file ScriptArray.h.

◆ FScriptArray() [2/3]

FScriptArray::FScriptArray ( int32 InNum,
int32 NumBytesPerElement )
inlineprotected

Definition at line 142 of file ScriptArray.h.

+ Here is the call graph for this function:

◆ FScriptArray() [3/3]

FScriptArray::FScriptArray ( const FScriptArray & )
inline

Definition at line 190 of file ScriptArray.h.

Member Function Documentation

◆ Add()

int32 FScriptArray::Add ( int32 Count,
int32 NumBytesPerElement )
inline

Definition at line 61 of file ScriptArray.h.

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

◆ AddZeroed()

int32 FScriptArray::AddZeroed ( int32 Count,
int32 NumBytesPerElement )
inline

Definition at line 75 of file ScriptArray.h.

+ Here is the call graph for this function:

◆ Empty()

void FScriptArray::Empty ( int32 Slack,
int32 NumBytesPerElement )
inline

Definition at line 90 of file ScriptArray.h.

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

◆ GetData() [1/2]

FORCEINLINE void * FScriptArray::GetData ( )
inline

Definition at line 18 of file ScriptArray.h.

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

◆ GetData() [2/2]

FORCEINLINE const void * FScriptArray::GetData ( ) const
inline

Definition at line 22 of file ScriptArray.h.

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

◆ GetSlack()

FORCEINLINE int32 FScriptArray::GetSlack ( ) const
inline

Returns the amount of slack in this array in elements.

Definition at line 107 of file ScriptArray.h.

◆ Insert()

void FScriptArray::Insert ( int32 Index,
int32 Count,
int32 NumBytesPerElement )
inline

Definition at line 41 of file ScriptArray.h.

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

◆ InsertZeroed()

void FScriptArray::InsertZeroed ( int32 Index,
int32 Count,
int32 NumBytesPerElement )
inline

Definition at line 36 of file ScriptArray.h.

+ Here is the call graph for this function:

◆ IsValidIndex()

FORCEINLINE bool FScriptArray::IsValidIndex ( int32 i) const
inline

Definition at line 26 of file ScriptArray.h.

◆ Num()

FORCEINLINE int32 FScriptArray::Num ( ) const
inline

Definition at line 30 of file ScriptArray.h.

+ Here is the caller graph for this function:

◆ operator=()

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

Definition at line 191 of file ScriptArray.h.

◆ Remove()

void FScriptArray::Remove ( int32 Index,
int32 Count,
int32 NumBytesPerElement )
inline

Definition at line 112 of file ScriptArray.h.

+ Here is the call graph for this function:

◆ ResizeGrow()

FORCENOINLINE void FScriptArray::ResizeGrow ( int32 OldNum,
int32 NumBytesPerElement )
inlineprotected

Definition at line 161 of file ScriptArray.h.

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

◆ ResizeInit()

FORCENOINLINE void FScriptArray::ResizeInit ( int32 NumBytesPerElement)
inlineprotected

Definition at line 156 of file ScriptArray.h.

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

◆ ResizeShrink()

FORCENOINLINE void FScriptArray::ResizeShrink ( int32 NumBytesPerElement)
inlineprotected

Definition at line 166 of file ScriptArray.h.

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

◆ ResizeTo()

FORCENOINLINE void FScriptArray::ResizeTo ( int32 NewMax,
int32 NumBytesPerElement )
inlineprotected

Definition at line 175 of file ScriptArray.h.

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

◆ Shrink()

void FScriptArray::Shrink ( int32 NumBytesPerElement)
inline

Definition at line 81 of file ScriptArray.h.

+ Here is the call graph for this function:

Member Data Documentation

◆ ArrayMax

int32 FScriptArray::ArrayMax
protected

Definition at line 154 of file ScriptArray.h.

◆ ArrayNum

int32 FScriptArray::ArrayNum
protected

Definition at line 153 of file ScriptArray.h.


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