#include <sqratObject.h>
Classes | |
| struct | iterator |
| Iterator for going over the slots in the object using Object::Next. More... | |
Public Member Functions | |
| 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 |
The base class for classes that represent Squirrel objects
|
inline |
Default constructor (null)
|
inline |
Constructs an Object from a Squirrel object
| o | Squirrel object |
| v | VM that the object will exist in |
|
inline |
Constructs an Object from a C++ instance
| instance | Pointer to a C++ class instance that has been bound already |
| v | VM that the object will exist in |
| T | Type of instance |
|
inlinevirtual |
Destructor
|
inline |
|
inlinevirtual |
Gets the Squirrel object for this Object (copy)
Reimplemented in Sqrat::Class< C, A >.
|
inlinevirtual |
Gets the Squirrel object for this Object (reference)
Reimplemented in Sqrat::Class< C, A >.
|
inline |
|
inline |
Attempts to get the value of a slot from the object
| slot | Name of the slot |
|
inline |
Attempts to get the value of an index from the object
| index | Index of the slot |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Used to go through all the slots in an Object (same limitations as sq_next)
| iter | An iterator being used for going through the slots |
|
inline |
Allows the Object to be inputted directly into places that expect a HSQOBJECT
|
inline |
|
inline |
Sets the Object to null (removing its references to underlying Squirrel objects)
1.8.6