class
#include <Jazz2/Scripting/RegisterArray.h>
CScriptArray AngelScript array
Public static functions
- static auto Create(asITypeInfo* ot) -> CScriptArray*
-
static auto Create(asITypeInfo* ot,
std::
uint32_t length) -> CScriptArray* -
static auto Create(asITypeInfo* ot,
std::
uint32_t length, void* defaultValue) -> CScriptArray* - static auto Create(asITypeInfo* ot, void* listBuffer) -> CScriptArray*
Constructors, destructors, conversion operators
- CScriptArray(asITypeInfo* ot, void* initBuf) protected
-
CScriptArray(std::
uint32_t length, asITypeInfo* ot) protected -
CScriptArray(std::
uint32_t 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 -> std::
int32_t -
auto GetElementTypeId() const -> std::
int32_t -
auto GetSize() const -> std::
uint32_t - auto IsEmpty() const -> bool
-
void Reserve(std::
uint32_t maxElements) -
void Resize(std::
uint32_t numElements) -
auto At(std::
uint32_t index) -> void* -
auto At(std::
uint32_t index) const -> const void* -
void SetValue(std::
uint32_t index, void* value) - auto operator=(const CScriptArray&) -> CScriptArray&
- auto operator==(const CScriptArray&) const -> bool
-
void InsertAt(std::
uint32_t index, void* value) -
void InsertAt(std::
uint32_t index, const CScriptArray& arr) - void InsertLast(void* value)
-
void RemoveAt(std::
uint32_t index) - void RemoveLast()
-
void RemoveRange(std::
uint32_t start, std:: uint32_t count) - void SortAsc()
- void SortDesc()
-
void SortAsc(std::
uint32_t startAt, std:: uint32_t count) -
void SortDesc(std::
uint32_t startAt, std:: uint32_t count) -
void Sort(std::
uint32_t startAt, std:: uint32_t count, bool asc) -
void Sort(asIScriptFunction* less,
std::
uint32_t startAt, std:: uint32_t count) - void Reverse()
- auto Find(void* value) const -> int
-
auto Find(std::
uint32_t startAt, void* value) const -> int - auto FindByRef(void* ref) const -> int
-
auto FindByRef(std::
uint32_t startAt, void* ref) const -> int - auto GetBuffer() -> void*
-
auto GetRefCount() -> std::
int32_t - 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(std::
int32_t index) -> void* - auto GetDataPointer(void* buffer) -> void*
- void Copy(void* dst, void* src)
- void Swap(void* a, void* b)
- void Precache()
-
auto CheckMaxSize(std::
uint32_t numElements) -> bool -
void Resize(std::
int32_t delta, std:: uint32_t at) -
void CreateBuffer(SArrayBuffer** buf,
std::
uint32_t numElements) - void DeleteBuffer(SArrayBuffer* buf)
- void CopyBuffer(SArrayBuffer* dst, SArrayBuffer* src)
-
void Construct(SArrayBuffer* buf,
std::
uint32_t start, std:: uint32_t end) -
void Destruct(SArrayBuffer* buf,
std::
uint32_t start, std:: uint32_t end) - auto Equals(const void* a, const void* b, asIScriptContext* ctx, SArrayCache* cache) const -> bool