#include <Script.h>
Collaboration diagram for Script::Object:
Public Methods | |
Object (const Object& src) | |
Copy constructor. | |
const Object& | operator= (const Object& src) |
Assignment operator. | |
Script& | GetParent () const |
lua_State* | GetState () const |
int | GetType () const |
bool | IsNil () const |
bool | IsTable () const |
bool | IsUserData () const |
bool | IsCFunction () const |
bool | IsNumber () const |
bool | IsString () const |
bool | IsFunction () const |
bool | IsNull () const |
int | GetStackIndex () const |
int | GetInteger () const |
float | GetNumber () const |
const char* | GetString () const |
int | StrLen () const |
CFunction | GetCFunction () const |
void* | GetUserData () const |
const void* | GetPointer () const |
Object | CreateTable (const char* name) |
Creates a table called [name] within the current Object. More... | |
void | SetNumber (const char* name, double value) |
Creates (or reassigns) the object called [name] to [value]. More... | |
void | SetString (const char* name, const char* value) |
Creates (or reassigns) the object called [name] to [value]. More... | |
void | SetUserData (const char* name, void* data) |
Creates (or reassigns) the object called [name] to [value]. More... | |
int | Tag () |
Object | GetByName (const char* name) |
Assuming the current object is a table, retrieves the table entry called [name]. More... | |
Object | GetByIndex (int index) |
Assuming the current object is a table, retrieves the table entry at [index]. More... | |
Protected Methods | |
Object (Script& parent, int index) | |
Protected Attributes | |
Script& | m_parent |
The parent script of this object. | |
int | m_stackIndex |
The stack index representing this object. | |
Friends | |
class | Script |
|
Copy constructor.
|
|
|
|
Creates a table called [name] within the current Object.
|
|
Assuming the current object is a table, retrieves the table entry at [index].
|
|
Assuming the current object is a table, retrieves the table entry called [name].
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Creates (or reassigns) the object called [name] to [value].
|
|
Creates (or reassigns) the object called [name] to [value].
|
|
Creates (or reassigns) the object called [name] to [value].
|
|
|
|
|
|
Assignment operator.
|
|
|
|
The parent script of this object.
|
|
The stack index representing this object.
|