ug4
|
Handle for a lua reference. More...
#include <lua_table_handle.h>
Public Member Functions | |
ug::Variant | get (int const &key) const |
ug::Variant | get (std::string const &key) const |
LuaTableHandle ()=delete | |
LuaTableHandle (lua_State *ref, int idx) | |
LuaTableHandle (LuaTableHandle &&) | |
LuaTableHandle (LuaTableHandle const &) | |
LuaTableHandle & | operator= (LuaTableHandle &&) |
LuaTableHandle & | operator= (LuaTableHandle const &) |
size_t | size () const |
~LuaTableHandle () | |
Private Attributes | |
impl::LuaTableHandle_ * | _data |
Handle for a lua reference.
|
delete |
ug::LuaTableHandle::LuaTableHandle | ( | LuaTableHandle const & | p | ) |
References _data, ug::impl::LuaTableHandle_::attach(), and p.
ug::LuaTableHandle::LuaTableHandle | ( | LuaTableHandle && | p | ) |
References _data, ug::impl::LuaTableHandle_::attach(), ug::impl::LuaTableHandle_::detach(), and p.
|
explicit |
References _data, and ug::impl::LuaTableHandle_::attach().
ug::LuaTableHandle::~LuaTableHandle | ( | ) |
References _data, and ug::impl::LuaTableHandle_::detach().
ug::Variant ug::LuaTableHandle::get | ( | int const & | key | ) | const |
References _data, and ug::impl::LuaTableHandle_::get().
ug::Variant ug::LuaTableHandle::get | ( | std::string const & | key | ) | const |
References _data, and ug::impl::LuaTableHandle_::get().
LuaTableHandle & ug::LuaTableHandle::operator= | ( | LuaTableHandle && | p | ) |
References _data, ug::impl::LuaTableHandle_::attach(), ug::impl::LuaTableHandle_::detach(), and p.
LuaTableHandle & ug::LuaTableHandle::operator= | ( | LuaTableHandle const & | p | ) |
References _data, ug::impl::LuaTableHandle_::attach(), p, and untested.
size_t ug::LuaTableHandle::size | ( | ) | const |
References _data, and ug::impl::LuaTableHandle_::size().
|
private |
Referenced by get(), LuaTableHandle(), operator=(), size(), and ~LuaTableHandle().