Represents a table in Squirrel. More...
#include <sqratTable.h>
Public Member Functions | |
Table () | |
Table (HSQUIRRELVM v) | |
Table (const Object &obj) | |
Table (HSQOBJECT o, HSQUIRRELVM v=DefaultVM::Get()) | |
![]() | |
TableBase (HSQUIRRELVM v=DefaultVM::Get()) | |
TableBase (const Object &obj) | |
TableBase (HSQOBJECT o, HSQUIRRELVM v=DefaultVM::Get()) | |
void | Bind (const SQChar *name, Object &obj) |
TableBase & | SquirrelFunc (const SQChar *name, SQFUNCTION func) |
template<class V > | |
TableBase & | SetValue (const SQChar *name, const V &val) |
template<class V > | |
TableBase & | SetValue (const SQInteger index, const V &val) |
template<class V > | |
TableBase & | SetInstance (const SQChar *name, V *val) |
template<class V > | |
TableBase & | SetInstance (const SQInteger index, V *val) |
template<class F > | |
TableBase & | Func (const SQChar *name, F method) |
template<class F > | |
TableBase & | Overload (const SQChar *name, F method) |
template<typename T > | |
SharedPtr< T > | GetValue (const SQChar *name) |
template<typename T > | |
SharedPtr< T > | GetValue (int index) |
Function | GetFunction (const SQChar *name) |
Function | GetFunction (const SQInteger index) |
![]() | |
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 a table in Squirrel.
|
inline |
Default constructor (null)
|
inline |
|
inline |
|
inline |
Construct the Table from a HSQOBJECT and HSQUIRRELVM that already exist
o | Squirrel object that should already represent a Squirrel table |
v | Squirrel VM that contains the Squirrel object given |