Represents an array in Squirrel. More...
#include <sqratArray.h>
Public Member Functions | |
Array () | |
Array (HSQUIRRELVM v, const SQInteger size=0) | |
Array (const Object &obj) | |
Array (HSQOBJECT o, HSQUIRRELVM v=DefaultVM::Get()) | |
![]() | |
ArrayBase (HSQUIRRELVM v=DefaultVM::Get()) | |
ArrayBase (const Object &obj) | |
ArrayBase (HSQOBJECT o, HSQUIRRELVM v=DefaultVM::Get()) | |
void | Bind (const SQInteger index, Object &obj) |
ArrayBase & | SquirrelFunc (const SQInteger index, SQFUNCTION func) |
template<class V > | |
ArrayBase & | SetValue (const SQInteger index, const V &val) |
template<class V > | |
ArrayBase & | SetInstance (const SQInteger index, V *val) |
template<class F > | |
ArrayBase & | Func (const SQInteger index, F method) |
template<typename T > | |
SharedPtr< T > | GetValue (int index) |
Function | GetFunction (const SQInteger index) |
template<typename T > | |
void | GetArray (T *array, int size) |
template<class V > | |
ArrayBase & | Append (const V &val) |
template<class V > | |
ArrayBase & | Append (V *val) |
template<class V > | |
ArrayBase & | Insert (const SQInteger destpos, const V &val) |
template<class V > | |
ArrayBase & | Insert (const SQInteger destpos, V *val) |
Object | Pop () |
ArrayBase & | Remove (const SQInteger itemidx) |
ArrayBase & | Resize (const SQInteger newsize) |
ArrayBase & | Reverse () |
SQInteger | Length () const |
![]() | |
Object () | |
Object (const Object &so) | |
Object (HSQOBJECT o, HSQUIRRELVM v=DefaultVM::Get()) | |
template<class T > | |
Object (T *instance, HSQUIRRELVM v=DefaultVM::Get()) | |
virtual | ~Object () |
Object & | operator= (const Object &so) |
HSQUIRRELVM & | GetVM () |
HSQUIRRELVM | GetVM () const |
SQObjectType | GetType () const |
bool | IsNull () const |
virtual HSQOBJECT | GetObject () const |
virtual HSQOBJECT & | GetObject () |
operator HSQOBJECT & () | |
void | Release () |
Object | GetSlot (const SQChar *slot) const |
Object | GetSlot (SQInteger index) const |
template<class T > | |
T | Cast () const |
template<class T > | |
Object | operator[] (T slot) |
SQInteger | GetSize () const |
bool | Next (iterator &iter) const |
Represents an array in Squirrel.
|
inline |
Default constructor (null)
|
inline |
|
inline |
|
inline |
Construct the Array from a HSQOBJECT and HSQUIRRELVM that already exist
o | Squirrel object that should already represent a Squirrel array |
v | Squirrel VM that contains the Squirrel object given |