LuaTableIterator::LuaTableIterator(const LuaTable& t) : _luaState(t.getLuaState()) { _stackTop = lua_gettop(_luaState); t.pushValue(); lua_pushnil(_luaState); toNextElement(); }