Jazz2::Scripting::CScriptArray class

AngelScript array

Public static functions

static auto Create(asITypeInfo* ot) -> CScriptArray*
static auto Create(asITypeInfo* ot, asUINT length) -> CScriptArray*
static auto Create(asITypeInfo* ot, asUINT length, void* defaultValue) -> CScriptArray*
static auto Create(asITypeInfo* ot, void* listBuffer) -> CScriptArray*

Constructors, destructors, conversion operators

CScriptArray(asITypeInfo* ot, void* initBuf) protected
CScriptArray(asUINT length, asITypeInfo* ot) protected
CScriptArray(asUINT length, void* defVal, asITypeInfo* ot) protected
CScriptArray(const CScriptArray& other) protected
~CScriptArray() protected virtual

Public functions

void AddRef() const
void Release() const
auto GetArrayObjectType() const -> asITypeInfo*
auto GetArrayTypeId() const -> int
auto GetElementTypeId() const -> int
auto GetSize() const -> asUINT
auto IsEmpty() const -> bool
void Reserve(asUINT maxElements)
void Resize(asUINT numElements)
auto At(asUINT index) -> void*
auto At(asUINT index) const -> const void*
void SetValue(asUINT index, void* value)
auto operator=(const CScriptArray&) -> CScriptArray&
auto operator==(const CScriptArray&) const -> bool
void InsertAt(asUINT index, void* value)
void InsertAt(asUINT index, const CScriptArray& arr)
void InsertLast(void* value)
void RemoveAt(asUINT index)
void RemoveLast()
void RemoveRange(asUINT start, asUINT count)
void SortAsc()
void SortDesc()
void SortAsc(asUINT startAt, asUINT count)
void SortDesc(asUINT startAt, asUINT count)
void Sort(asUINT startAt, asUINT count, bool asc)
void Sort(asIScriptFunction* less, asUINT startAt, asUINT count)
void Reverse()
auto Find(void* value) const -> int
auto Find(asUINT startAt, void* value) const -> int
auto FindByRef(void* ref) const -> int
auto FindByRef(asUINT startAt, void* ref) const -> int
auto GetBuffer() -> void*
auto GetRefCount() -> int
void SetFlag()
auto GetFlag() -> bool
void EnumReferences(asIScriptEngine* engine)
void ReleaseAllHandles(asIScriptEngine* engine)

Protected functions

auto Less(const void* a, const void* b, bool asc) -> bool
auto GetArrayItemPointer(int index) -> void*
auto GetDataPointer(void* buffer) -> void*
void Copy(void* dst, void* src)
void Swap(void* a, void* b)
void Precache()
auto CheckMaxSize(asUINT numElements) -> bool
void Resize(int delta, asUINT at)
void CreateBuffer(SArrayBuffer** buf, asUINT numElements)
void DeleteBuffer(SArrayBuffer* buf)
void CopyBuffer(SArrayBuffer* dst, SArrayBuffer* src)
void Construct(SArrayBuffer* buf, asUINT start, asUINT end)
void Destruct(SArrayBuffer* buf, asUINT start, asUINT end)
auto Equals(const void* a, const void* b, asIScriptContext* ctx, SArrayCache* cache) const -> bool

Protected variables

int refCount
bool gcFlag
asITypeInfo* objType
SArrayBuffer* buffer
int elementSize
int subTypeId