Ark Server API (ASA) - Wiki
Loading...
Searching...
No Matches
TScriptArray< AllocatorType > Class Template Reference

#include <ScriptArray.h>

+ Inheritance diagram for TScriptArray< AllocatorType >:
+ Collaboration diagram for TScriptArray< AllocatorType >:

Public Member Functions

FORCEINLINE voidGetData ()
 
FORCEINLINE const voidGetData () const
 
FORCEINLINE bool IsValidIndex (int32 i) const
 
bool IsEmpty () const
 
FORCEINLINE int32 Num () const
 
void InsertZeroed (int32 Index, int32 Count, int32 NumBytesPerElement, uint32 AlignmentOfElement)
 
void Insert (int32 Index, int32 Count, int32 NumBytesPerElement, uint32 AlignmentOfElement)
 
int32 Add (int32 Count, int32 NumBytesPerElement, uint32 AlignmentOfElement)
 
int32 AddZeroed (int32 Count, int32 NumBytesPerElement, uint32 AlignmentOfElement)
 
void Shrink (int32 NumBytesPerElement, uint32 AlignmentOfElement)
 
void SetNumUninitialized (int32 NewNum, int32 NumBytesPerElement, uint32 AlignmentOfElement, bool bAllowShrinking=true)
 
void MoveAssign (TScriptArray &Other, int32 NumBytesPerElement, uint32 AlignmentOfElement)
 
void Empty (int32 Slack, int32 NumBytesPerElement, uint32 AlignmentOfElement)
 
void Reset (int32 NewSize, int32 NumBytesPerElement, uint32 AlignmentOfElement)
 
void SwapMemory (int32 A, int32 B, int32 NumBytesPerElement)
 
 TScriptArray ()
 
void CountBytes (FArchive &Ar, int32 NumBytesPerElement) const
 
FORCEINLINE void CheckAddress (const void *Addr, int32 NumBytesPerElement) const
 
FORCEINLINE int32 GetSlack () const
 
void Remove (int32 Index, int32 Count, int32 NumBytesPerElement, uint32 AlignmentOfElement, bool bAllowShrinking=true)
 
SIZE_T GetAllocatedSize (int32 NumBytesPerElement) const
 
 TScriptArray (const TScriptArray &)
 
void operator= (const TScriptArray &)
 

Protected Member Functions

 TScriptArray (int32 InNum, int32 NumBytesPerElement, uint32 AlignmentOfElement)
 
FORCENOINLINE void ResizeInit (int32 NumBytesPerElement, uint32 AlignmentOfElement)
 
FORCENOINLINE void ResizeGrow (int32 OldNum, int32 NumBytesPerElement, uint32 AlignmentOfElement)
 
FORCENOINLINE void ResizeShrink (int32 NumBytesPerElement, uint32 AlignmentOfElement)
 
FORCENOINLINE void ResizeTo (int32 NewMax, int32 NumBytesPerElement, uint32 AlignmentOfElement)
 

Protected Attributes

int32 ArrayNum
 
int32 ArrayMax
 

Detailed Description

template<typename AllocatorType>
class TScriptArray< AllocatorType >

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 18 of file ScriptArray.h.

Constructor & Destructor Documentation

◆ TScriptArray() [1/3]

template<typename AllocatorType >
TScriptArray< AllocatorType >::TScriptArray ( )
inline

Definition at line 148 of file ScriptArray.h.

◆ TScriptArray() [2/3]

template<typename AllocatorType >
TScriptArray< AllocatorType >::TScriptArray ( int32 InNum,
int32 NumBytesPerElement,
uint32 AlignmentOfElement )
inlineprotected

Definition at line 206 of file ScriptArray.h.

◆ TScriptArray() [3/3]

template<typename AllocatorType >
TScriptArray< AllocatorType >::TScriptArray ( const TScriptArray< AllocatorType > & )
inline

Definition at line 254 of file ScriptArray.h.

Member Function Documentation

◆ Add()

template<typename AllocatorType >
int32 TScriptArray< AllocatorType >::Add ( int32 Count,
int32 NumBytesPerElement,
uint32 AlignmentOfElement )
inline

Definition at line 70 of file ScriptArray.h.

◆ AddZeroed()

template<typename AllocatorType >
int32 TScriptArray< AllocatorType >::AddZeroed ( int32 Count,
int32 NumBytesPerElement,
uint32 AlignmentOfElement )
inline

Definition at line 84 of file ScriptArray.h.

◆ CheckAddress()

template<typename AllocatorType >
FORCEINLINE void TScriptArray< AllocatorType >::CheckAddress ( const void * Addr,
int32 NumBytesPerElement ) const
inline

Definition at line 157 of file ScriptArray.h.

◆ CountBytes()

template<typename AllocatorType >
void TScriptArray< AllocatorType >::CountBytes ( FArchive & Ar,
int32 NumBytesPerElement ) const
inline

Definition at line 153 of file ScriptArray.h.

◆ Empty()

template<typename AllocatorType >
void TScriptArray< AllocatorType >::Empty ( int32 Slack,
int32 NumBytesPerElement,
uint32 AlignmentOfElement )
inline

Definition at line 120 of file ScriptArray.h.

◆ GetAllocatedSize()

template<typename AllocatorType >
SIZE_T TScriptArray< AllocatorType >::GetAllocatedSize ( int32 NumBytesPerElement) const
inline

Definition at line 199 of file ScriptArray.h.

◆ GetData() [1/2]

template<typename AllocatorType >
FORCEINLINE void * TScriptArray< AllocatorType >::GetData ( )
inline

Definition at line 23 of file ScriptArray.h.

◆ GetData() [2/2]

template<typename AllocatorType >
FORCEINLINE const void * TScriptArray< AllocatorType >::GetData ( ) const
inline

Definition at line 27 of file ScriptArray.h.

◆ GetSlack()

template<typename AllocatorType >
FORCEINLINE int32 TScriptArray< AllocatorType >::GetSlack ( ) const
inline

Returns the amount of slack in this array in elements.

Definition at line 164 of file ScriptArray.h.

◆ Insert()

template<typename AllocatorType >
void TScriptArray< AllocatorType >::Insert ( int32 Index,
int32 Count,
int32 NumBytesPerElement,
uint32 AlignmentOfElement )
inline

Definition at line 50 of file ScriptArray.h.

◆ InsertZeroed()

template<typename AllocatorType >
void TScriptArray< AllocatorType >::InsertZeroed ( int32 Index,
int32 Count,
int32 NumBytesPerElement,
uint32 AlignmentOfElement )
inline

Definition at line 45 of file ScriptArray.h.

◆ IsEmpty()

template<typename AllocatorType >
bool TScriptArray< AllocatorType >::IsEmpty ( ) const
inline

Definition at line 35 of file ScriptArray.h.

◆ IsValidIndex()

template<typename AllocatorType >
FORCEINLINE bool TScriptArray< AllocatorType >::IsValidIndex ( int32 i) const
inline

Definition at line 31 of file ScriptArray.h.

◆ MoveAssign()

template<typename AllocatorType >
void TScriptArray< AllocatorType >::MoveAssign ( TScriptArray< AllocatorType > & Other,
int32 NumBytesPerElement,
uint32 AlignmentOfElement )
inline

Definition at line 112 of file ScriptArray.h.

◆ Num()

template<typename AllocatorType >
FORCEINLINE int32 TScriptArray< AllocatorType >::Num ( ) const
inline

Definition at line 39 of file ScriptArray.h.

◆ operator=()

template<typename AllocatorType >
void TScriptArray< AllocatorType >::operator= ( const TScriptArray< AllocatorType > & )
inline

Definition at line 255 of file ScriptArray.h.

◆ Remove()

template<typename AllocatorType >
void TScriptArray< AllocatorType >::Remove ( int32 Index,
int32 Count,
int32 NumBytesPerElement,
uint32 AlignmentOfElement,
bool bAllowShrinking = true )
inline

Definition at line 169 of file ScriptArray.h.

◆ Reset()

template<typename AllocatorType >
void TScriptArray< AllocatorType >::Reset ( int32 NewSize,
int32 NumBytesPerElement,
uint32 AlignmentOfElement )
inline

Definition at line 129 of file ScriptArray.h.

◆ ResizeGrow()

template<typename AllocatorType >
FORCENOINLINE void TScriptArray< AllocatorType >::ResizeGrow ( int32 OldNum,
int32 NumBytesPerElement,
uint32 AlignmentOfElement )
inlineprotected

Definition at line 225 of file ScriptArray.h.

◆ ResizeInit()

template<typename AllocatorType >
FORCENOINLINE void TScriptArray< AllocatorType >::ResizeInit ( int32 NumBytesPerElement,
uint32 AlignmentOfElement )
inlineprotected

Definition at line 220 of file ScriptArray.h.

◆ ResizeShrink()

template<typename AllocatorType >
FORCENOINLINE void TScriptArray< AllocatorType >::ResizeShrink ( int32 NumBytesPerElement,
uint32 AlignmentOfElement )
inlineprotected

Definition at line 230 of file ScriptArray.h.

◆ ResizeTo()

template<typename AllocatorType >
FORCENOINLINE void TScriptArray< AllocatorType >::ResizeTo ( int32 NewMax,
int32 NumBytesPerElement,
uint32 AlignmentOfElement )
inlineprotected

Definition at line 239 of file ScriptArray.h.

◆ SetNumUninitialized()

template<typename AllocatorType >
void TScriptArray< AllocatorType >::SetNumUninitialized ( int32 NewNum,
int32 NumBytesPerElement,
uint32 AlignmentOfElement,
bool bAllowShrinking = true )
inline

Definition at line 99 of file ScriptArray.h.

◆ Shrink()

template<typename AllocatorType >
void TScriptArray< AllocatorType >::Shrink ( int32 NumBytesPerElement,
uint32 AlignmentOfElement )
inline

Definition at line 90 of file ScriptArray.h.

◆ SwapMemory()

template<typename AllocatorType >
void TScriptArray< AllocatorType >::SwapMemory ( int32 A,
int32 B,
int32 NumBytesPerElement )
inline

Definition at line 140 of file ScriptArray.h.

Member Data Documentation

◆ ArrayMax

template<typename AllocatorType >
int32 TScriptArray< AllocatorType >::ArrayMax
protected

Definition at line 218 of file ScriptArray.h.

◆ ArrayNum

template<typename AllocatorType >
int32 TScriptArray< AllocatorType >::ArrayNum
protected

Definition at line 217 of file ScriptArray.h.


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