#include <sqratConst.h>
Public Member Functions | |
| ConstTable (HSQUIRRELVM v=DefaultVM::Get()) | |
| virtual ConstTable & | Const (const SQChar *name, const int val) |
| virtual ConstTable & | Const (const SQChar *name, const float val) |
| virtual ConstTable & | Const (const SQChar *name, const SQChar *val) |
| ConstTable & | Enum (const SQChar *name, Enumeration &en) |
Public Member Functions inherited from Sqrat::Enumeration | |
| Enumeration (HSQUIRRELVM v=DefaultVM::Get(), bool createTable=true) | |
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 () |
| 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 |
Facilitates exposing a C++ constant to Squirrel
|
inline |
Constructs a ConstTable object to represent the given VM's const table
| v | VM to get the ConstTable for |
|
inlinevirtual |
Binds a constant value
| name | Name of the value as it will appear in Squirrel |
| val | Value to bind |
Reimplemented from Sqrat::Enumeration.
|
inlinevirtual |
Binds a constant value
| name | Name of the value as it will appear in Squirrel |
| val | Value to bind |
Reimplemented from Sqrat::Enumeration.
|
inlinevirtual |
Binds a constant value
| name | Name of the value as it will appear in Squirrel |
| val | Value to bind |
Reimplemented from Sqrat::Enumeration.
|
inline |
Binds an Enumeration to the ConstTable
| name | Name of the enumeration as it will appear in Squirrel |
| en | Enumeration to bind |
1.8.6