LuaTable

Represents a Lua table.

Constructors

this
this(lua_State* L, int idx)
Undocumented in source.

Alias This

object

Members

Functions

copyTo
void copyTo(T s)

Fill a struct's members with fields from this table.

get
T get(U args)

Lookup a value in this table or in a sub-table of this table.

getMetaTable
LuaTable getMetaTable()

Get the metatable for this table.

length
size_t length()

Get the array length of the table.

opApply
int opApply(int delegate(ref T value) dg)

Iterate over the values in this table.

opApply
int opApply(int delegate(ref U key, ref T value) dg)

Iterate over the key-value pairs in this table.

opIndex
LuaObject opIndex(T args)

Same as calling get!LuaObject with the same arguments.

opIndexAssign
void opIndexAssign(T value, U args)

Set a key-value pair this table or in a sub-table of this table.

readString
bool readString(T key, void delegate(in char[] str) dg)

Read a string value in this table without making a copy of the string. The read string is passed to dg, and should not be escaped. If the value for key is not a string, dg is not called.

set
void set(T key, U value)

Set a key-value pair in this table.

setMetaTable
void setMetaTable(LuaTable meta)

* Set the metatable for this table. * Params: * meta = new metatable

toStruct
T toStruct()

Create struct of type T and fill its members with fields from this table.

Variables

object
LuaObject object;

LuaTable sub-types $(DPREF base, LuaObject) through this reference.

Meta