lua.h File Reference
Include dependency graph for lua.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Classes | |
| struct | lua::LuaCallError |
Namespaces | |
| namespace | Lua |
The Lua C API from <lua.hpp> can be accessed via the Lua namespace if required, but it is intended for internal use by the library to avoid polluting the global namespace. | |
| namespace | lua |
The lua namespace contains support functions for interfacing with the embedded Lua environment. | |
| namespace | lua::detail |
Functions | |
| template<typename R > | |
| R | lua::convert (lua_State *state, int index=-1) |
| template<> | |
| bool | lua::convert< bool > (lua_State *state, int index) |
| template<> | |
| int | lua::convert< int > (lua_State *state, int index) |
| template<> | |
| unsigned int | lua::convert< unsigned int > (lua_State *state, int index) |
| template<> | |
| string | lua::convert< string > (lua_State *state, int index) |
| template<> | |
| const char * | lua::convert< const char * > (lua_State *state, int index) |
| template<> | |
| lua_Number | lua::convert< lua_Number > (lua_State *state, int index) |
| void | lua::push_value (lua_State *state, const bool value) |
| void | lua::push_value (lua_State *state, const int value) |
| void | lua::push_value (lua_State *state, const lua_Number value) |
| void | lua::push_value (lua_State *state, const char *value) |
| void | lua::push_value (lua_State *state, const string &value) |
| void | lua::push_value (lua_State *state, void *value) |
| void | lua::push_value (lua_State *state, const void *value) |
| void | lua::push_values (lua_State *) |
| template<typename P > | |
| void | lua::push_values (lua_State *state, const P &p) |
| template<typename T , typename... P> | |
| void | lua::push_values (lua_State *state, const T &t, const P &...p) |
| template<typename V > | |
| void | lua::set_field (lua_State *state, int index, const V &value, const char *const field) |
| template<typename V > | |
| void | lua::set_field (lua_State *state, int index, const V &value, const string &field) |
| template<typename V > | |
| void | lua::set_field (lua_State *state, int index, const V &value, int n) |
| void | lua::detail::_get_field (lua_State *state, int index, const char *const field) |
| void | lua::detail::_get_field (lua_State *state, int index, const string &field) |
| template<typename V > | |
| void | lua::detail::_create_value (lua_State *state, const V &value, const char *const field) |
| template<typename V > | |
| void | lua::detail::_create_value (lua_State *state, const V &value, const string &field) |
| template<typename V , typename... P> | |
| void | lua::detail::_create_value (lua_State *state, const V &value, const char *const field, P...p) |
| template<typename V > | |
| void | lua::detail::_set_value (lua_State *state, const V &value, const char *const field) |
| template<typename V > | |
| void | lua::detail::_set_value (lua_State *state, const V &value, const string &field) |
| template<typename V , typename... P> | |
| void | lua::detail::_set_value (lua_State *state, const V &value, const char *const field, P...p) |
| void | lua::get_global (lua_State *state, const char *const field) |
| void | lua::get_global (lua_State *state, const string &field) |
| template<typename V > | |
| void | lua::set_global (lua_State *state, const V &value, const char *const field) |
| template<typename V > | |
| void | lua::set_global (lua_State *state, const V &value, const string &field) |
| template<typename R > | |
| const R | lua::get_field (const R &default_value, lua_State *state, int index, const char *const field) |
| template<typename R > | |
| const R | lua::get_field (const R &default_value, lua_State *state, int index, const string &field) |
| template<typename R > | |
| const R | lua::get_field (const R &default_value, lua_State *state, int index, int n) |
| template<typename R , typename... P> | |
| const R | lua::get_field (const R &default_value, lua_State *state, int index, const char *const field, P...p) |
| template<typename R > | |
| const R | lua::get_field (lua_State *state, int index, const char *const field) |
| template<typename R > | |
| const R | lua::get_field (lua_State *state, int index, const string &field) |
| template<typename R > | |
| const R | lua::get_field (lua_State *state, int index, int n) |
| template<typename R , typename... P> | |
| const R | lua::get_field (lua_State *state, int index, const char *const field, P...p) |
| template<typename R > | |
| const R | lua::get_value (const R &default_value, lua_State *state, const char *const var) |
| template<typename R > | |
| const R | lua::get_value (const R &default_value, lua_State *state, const string &var) |
| template<typename R , typename... P> | |
| const R | lua::get_value (const R &default_value, lua_State *state, const char *const var, P...p) |
| template<typename R > | |
| const R | lua::get_value (lua_State *state, const char *const var) |
| template<typename R > | |
| const R | lua::get_value (lua_State *state, const string &var) |
| template<typename R , typename... P> | |
| const R | lua::get_value (lua_State *state, const char *const var, P...p) |
| template<typename V > | |
| void | lua::create_value (lua_State *state, const V &value, const char *const var) |
| template<typename V > | |
| void | lua::create_value (lua_State *state, const V &value, const string &var) |
| template<typename V , typename... P> | |
| void | lua::create_value (lua_State *state, const V &value, const char *const var, P...p) |
| template<typename V , typename... P> | |
| void | lua::set_field (lua_State *state, int index, const V &value, const char *const field, P...p) |
| template<typename V > | |
| void | lua::set_value (lua_State *state, const V &value, const char *const var) |
| template<typename V > | |
| void | lua::set_value (lua_State *state, const V &value, const string &var) |
| template<typename V , typename... P> | |
| void | lua::set_value (lua_State *state, const V &value, const char *const var, P...p) |
| template<typename I > | |
| void | lua::prepend_package_path (lua_State *state, const I &begin, const I &end) |
| template<typename... P> | |
| void | lua::pcall_nopop (const int nargs, const int nresults, lua_State *state, P...p) SSRC_DECL_THROW(LuaCallError) |
| Assumes function has already been pushed to top of stack. | |
| template<typename... P> | |
| void | lua::pcall_nopop (const int nresults, lua_State *state, P...p) SSRC_DECL_THROW(LuaCallError) |
| template<typename R , typename... P> | |
| R | lua::pcall_ret (lua_State *state, const P &...p) SSRC_DECL_THROW(LuaCallError) |
| Currently, we support only one return value, but it should be possible to work things out to specify multiple return values and return them via a tuple. | |
| template<typename... P> | |
| void | lua::pcall (lua_State *state, const P &...p) SSRC_DECL_THROW(LuaCallError) |
Copyright © 2006-2011 Savarese Software Research Corporation. All rights reserved.