sqrat  0.9
 All Classes Functions Variables Enumerations Enumerator Pages
Public Member Functions | List of all members
Sqrat::Table Class Reference

Represents a table in Squirrel. More...

#include <sqratTable.h>

Inheritance diagram for Sqrat::Table:
Sqrat::TableBase Sqrat::Object

Public Member Functions

 Table ()
 Table (const Object &obj)
 Table (HSQOBJECT o, HSQUIRRELVM v=DefaultVM::Get())
- Public Member Functions inherited from Sqrat::TableBase
 TableBase (HSQUIRRELVM v=DefaultVM::Get())
 TableBase (const Object &obj)
 TableBase (HSQOBJECT o, HSQUIRRELVM v=DefaultVM::Get())
void Bind (const SQChar *name, Object &obj)
TableBaseSquirrelFunc (const SQChar *name, SQFUNCTION func)
template<class V >
TableBaseSetValue (const SQChar *name, const V &val)
template<class V >
TableBaseSetValue (const SQInteger index, const V &val)
template<class V >
TableBaseSetInstance (const SQChar *name, V *val)
template<class V >
TableBaseSetInstance (const SQInteger index, V *val)
template<class F >
TableBaseFunc (const SQChar *name, F method)
template<class F >
TableBaseOverload (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)
- Public Member Functions inherited from Sqrat::Object
 Object ()
 Object (const Object &so)
 Object (HSQOBJECT o, HSQUIRRELVM v=DefaultVM::Get())
template<class T >
 Object (T *instance, HSQUIRRELVM v=DefaultVM::Get())
virtual ~Object ()
Objectoperator= (const Object &so)
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 >
Cast () const
template<class T >
Object operator[] (T slot)
SQInteger GetSize () const
bool Next (iterator &iter) const

Detailed Description

Represents a table in Squirrel.

Constructor & Destructor Documentation

Sqrat::Table::Table ( )

Default constructor (null)

The Table is invalid until it is given a VM to exist in
Sqrat::Table::Table ( HSQUIRRELVM  v)

Constructs a Table

vVM to create the Table in
Sqrat::Table::Table ( const Object obj)

Construct the Table from an Object that already exists

objAn Object that should already represent a Squirrel table
Sqrat::Table::Table ( HSQOBJECT  o,
HSQUIRRELVM  v = DefaultVM::Get() 

Construct the Table from a HSQOBJECT and HSQUIRRELVM that already exist

oSquirrel object that should already represent a Squirrel table
vSquirrel VM that contains the Squirrel object given

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