Lines Matching full:index

63 /// \pre stack(-1) is the table index.
114 /// \pre stack(-2) is the table index.
333 /// \param index The second parameter to luaL_getmetafield.
341 lutok::state::get_metafield(const int index, const std::string& name) in get_metafield() argument
343 return luaL_getmetafield(_pimpl->lua_state, index, name.c_str()) != 0; in get_metafield()
349 /// \param index The second parameter to lua_getmetatable.
353 lutok::state::get_metatable(const int index) in get_metatable() argument
355 return lua_getmetatable(_pimpl->lua_state, index) != 0; in get_metatable()
361 /// \param index The second parameter to lua_gettable.
368 lutok::state::get_table(const int index) in get_table() argument
372 lua_pushvalue(_pimpl->lua_state, index < 0 ? index - 1 : index); in get_table()
392 /// \param index The second parameter to lua_insert.
394 lutok::state::insert(const int index) in insert() argument
396 lua_insert(_pimpl->lua_state, index); in insert()
402 /// \param index The second parameter to lua_isboolean.
406 lutok::state::is_boolean(const int index) in is_boolean() argument
408 return lua_isboolean(_pimpl->lua_state, index); in is_boolean()
414 /// \param index The second parameter to lua_isfunction.
418 lutok::state::is_function(const int index) in is_function() argument
420 return lua_isfunction(_pimpl->lua_state, index); in is_function()
426 /// \param index The second parameter to lua_isnil.
430 lutok::state::is_nil(const int index) in is_nil() argument
432 return lua_isnil(_pimpl->lua_state, index); in is_nil()
438 /// \param index The second parameter to lua_isnumber.
442 lutok::state::is_number(const int index) in is_number() argument
444 return lua_isnumber(_pimpl->lua_state, index); in is_number()
450 /// \param index The second parameter to lua_isstring.
454 lutok::state::is_string(const int index) in is_string() argument
456 return lua_isstring(_pimpl->lua_state, index); in is_string()
462 /// \param index The second parameter to lua_istable.
466 lutok::state::is_table(const int index) in is_table() argument
468 return lua_istable(_pimpl->lua_state, index); in is_table()
474 /// \param index The second parameter to lua_isuserdata.
478 lutok::state::is_userdata(const int index) in is_userdata() argument
480 return lua_isuserdata(_pimpl->lua_state, index); in is_userdata()
546 /// \param index The second parameter to lua_next.
552 lutok::state::next(const int index) in next() argument
554 assert(lua_istable(_pimpl->lua_state, index)); in next()
557 lua_pushvalue(_pimpl->lua_state, index < 0 ? index - 1 : index); in next()
737 /// \param index The second parameter to lua_pushvalue.
739 lutok::state::push_value(const int index) in push_value() argument
741 lua_pushvalue(_pimpl->lua_state, index); in push_value()
747 /// \param index The second parameter to lua_rawget.
749 lutok::state::raw_get(const int index) in raw_get() argument
751 lua_rawget(_pimpl->lua_state, index); in raw_get()
757 /// \param index The second parameter to lua_rawset.
762 lutok::state::raw_set(const int index) in raw_set() argument
764 lua_rawset(_pimpl->lua_state, index); in raw_set()
790 /// \param index The second parameter to lua_setmetatable.
792 lutok::state::set_metatable(const int index) in set_metatable() argument
794 lua_setmetatable(_pimpl->lua_state, index); in set_metatable()
800 /// \param index The second parameter to lua_settable.
807 lutok::state::set_table(const int index) in set_table() argument
810 lua_pushvalue(_pimpl->lua_state, index < 0 ? index - 1 : index); in set_table()
821 /// \param index The second parameter to lua_toboolean.
825 lutok::state::to_boolean(const int index) in to_boolean() argument
827 assert(is_boolean(index)); in to_boolean()
828 return lua_toboolean(_pimpl->lua_state, index); in to_boolean()
834 /// \param index The second parameter to lua_tointeger.
838 lutok::state::to_integer(const int index) in to_integer() argument
840 assert(is_number(index)); in to_integer()
841 return lua_tointeger(_pimpl->lua_state, index); in to_integer()
850 /// \param index The second parameter to lua_touserdata.
856 lutok::state::to_userdata_voidp(const int index) in to_userdata_voidp() argument
858 return lua_touserdata(_pimpl->lua_state, index); in to_userdata_voidp()
865 /// \param index The second parameter to lua_tostring.
871 lutok::state::to_string(const int index) in to_string() argument
873 assert(is_string(index)); in to_string()
874 const char *raw_string = lua_tostring(_pimpl->lua_state, index); in to_string()
884 /// \param index The first parameter to lua_upvalueindex.
888 lutok::state::upvalue_index(const int index) in upvalue_index() argument
890 return lua_upvalueindex(index); in upvalue_index()