Namespaces | |
| namespace | Impl |
| Implementation details of Diluculum. | |
Classes | |
| class | LuaError |
| A generic Lua-related error. More... | |
| class | LuaRunTimeError |
| A Lua run-time error. More... | |
| class | LuaFileError |
| A Lua file-related error. More... | |
| class | LuaSyntaxError |
| An error while interpreting a chunk of Lua code. More... | |
| class | LuaMemoryError |
| A memory error reported by Lua. More... | |
| class | LuaErrorError |
| An error while executing the Lua error handler. More... | |
| class | LuaTypeError |
| An error related to types when doing some Lua-related processing. More... | |
| class | TypeMismatchError |
| class | LuaFunction |
| class | LuaState |
| class | LuaUserData |
| class | LuaValue |
| class | LuaVariable |
Typedefs | |
| typedef std::vector< LuaValue > | LuaValueList |
| typedef std::map< LuaValue, LuaValue > | LuaValueMap |
Functions | |
| LuaValue | ToLuaValue (lua_State *state, int index) |
| void | PushLuaValue (lua_State *state, const LuaValue &value) |
Variables | |
| const LuaValue | Nil |
A constant with the value of nil. | |
| const LuaValueMap | EmptyLuaValueMap |
A constant that is an empty LuaValueMap. | |
| const LuaValue | EmptyTable (EmptyLuaValueMap) |
| A constant with value of an empty table. | |
Well, everything but the macros defined in Diluculum/LuaWrappers.hpp (because preprocessor macros don't know what are namespaces.)
| typedef std::vector<LuaValue> Diluculum::LuaValueList |
| typedef std::map<LuaValue, LuaValue> Diluculum::LuaValueMap |
| void Diluculum::PushLuaValue | ( | lua_State * | state, | |
| const LuaValue & | value | |||
| ) |
Pushes the value stored at value into the Lua stack of state. For most types, this is equivalent to simply calling the appropriate lua_push*() function. For other types, like tables and Lua functions, the implementation is more complicated.
value holds a table, then any entry that happens to have Nil as key will be ignored. (Since Lua does not support nil as a table index.) | LuaValue Diluculum::ToLuaValue | ( | lua_State * | state, | |
| int | index | |||
| ) |
Converts and returns the element at index index on the stack to a LuaValue. This keeps the Lua stack untouched. Oh, yes, and it accepts both positive and negative indices, just like the standard functions on the Lua C API.
| LuaTypeError | If the element at index cannot be converted to a LuaValue. This can happen if the value at that position is, for example, a "Lua Thread" that is not supported by LuaValue. |
A constant with value of an empty table.
| const LuaValue Diluculum::Nil |
1.5.9