|
Lua_icxx
1.02 (Aug 2011)
|
Represent a reference to a Lua object that is a table. More...
#include <LuaTableRef.h>
Inheritance diagram for LuaTableRef:
Collaboration diagram for LuaTableRef:Classes | |
| class | Field |
| Represent a field of a Lua Table reference. More... | |
Public Member Functions | |
| LuaTableRef (const std::string &id="nil") | |
| Reference to nil. | |
| template<typename KeyType > | |
| bool | hasField (const KeyType &key) const |
| see if table contains a field for given key | |
| LuaTableRef (const LuaTempResult &res) | |
| Create from object on Lua stack. | |
| LuaTableRef (const LuaTempResult::Item &item) | |
| Create from object on Lua stack. | |
| LuaTableRef (lua_State *lua, int stackPos) | |
| Create from object on Lua stack. | |
| template<typename KeyType > | |
| LuaTempResult | getField (const KeyType &key) const |
| get table[key] | |
| template<typename KeyType > | |
| Field< KeyType > | operator[] (const KeyType &key) |
| get table[key] | |
| template<typename ValType > | |
| void | setField (const char *key, const ValType &obj) |
| template<typename ValType > | |
| void | setField (const std::string &key, const ValType &obj) |
| template<typename KeyType , typename ValType > | |
| void | setField (const KeyType &key, const ValType &obj) |
| void | delField (const char *key) |
| remove field from table | |
| void | delField (const std::string &key) |
| remove field from table | |
| template<typename KeyType > | |
| void | delField (const KeyType &key) |
| remove field from table | |
Represent a reference to a Lua object that is a table.
Extends LuaObjRef by adding field set/get methods.
Definition at line 32 of file LuaTableRef.h.