nngn
Loading...
Searching...
No Matches
nngn::lua::table_view Struct Reference

Non-owning reference to a table on the stack. More...

#include <table.h>

Inheritance diagram for nngn::lua::table_view:
Collaboration diagram for nngn::lua::table_view:

Public Member Functions

 table_view (value_view v)
 
 table_view (value_view v)
 
 value_view (lua_State *L, int i)
 
 value_view (state_view l, int i)
 
 value_view (lua_State *L, int i)
 
 value_view (state_view l, int i)
 
 value_view (lua_State *L, int i)
 
 value_view (state_view l, int i)
 
 value_view (lua_State *L, int i)
 
 value_view (state_view l, int i)
 
- Public Member Functions inherited from nngn::lua::value_view
 value_view (lua_State *L, int i)
 
 value_view (state_view l, int i)
 
 ~value_view (void)=default
 
state_view state (void) const
 
state_view release (void)
 
int index (void) const
 Lua stack index.
 
type get_type (void) const
 Type of value at index i.
 
bool is_nil (void) const
 
auto to_string (void) const
 
void get (lua_State *L, int i)
 
template<typename T >
requires (detail::can_get<T>)
T get (void) const
 
int push (void) const
 
template<typename R = value_view>
push (void) const
 
template<typename T >
 operator T (void) const
 
 value_view (lua_State *L, int i)
 
 value_view (state_view l, int i)
 
 ~value_view (void)=default
 
state_view state (void) const
 
state_view release (void)
 
int index (void) const
 Lua stack index.
 
type get_type (void) const
 Type of value at index i.
 
bool is_nil (void) const
 
auto to_string (void) const
 
void get (lua_State *L, int i)
 
template<typename T >
requires (detail::can_get<T>)
T get (void) const
 
int push (void) const
 
template<typename R = value_view>
push (void) const
 
template<typename T >
 operator T (void) const
 
- Public Member Functions inherited from nngn::lua::detail::table_base< table_view >
table_proxy< table_view, std::decay_t< K > > operator[] (K &&k) const
 
table_proxy< table_view, std::decay_t< K > > operator[] (K &&k) const
 
lua_Integer size (void) const
 
lua_Integer size (void) const
 
table_iter< const table_viewbegin (void) const
 lua_next-based iteration.
 
table_iter< const table_viewbegin (void) const
 lua_next-based iteration.
 
table_iter< const table_viewend (void) const
 Sentinel for begin.
 
table_iter< const table_viewend (void) const
 Sentinel for begin.
 
table_seq_iter< const table_viewibegin (void) const
 ipairs-style iteration.
 
table_seq_iter< const table_viewibegin (void) const
 ipairs-style iteration.
 
table_seq_iter< const table_viewiend (void) const
 Sentinel for ibegin.
 
table_seq_iter< const table_viewiend (void) const
 Sentinel for ibegin.
 
T raw_get (auto &&k, T &&def=T{}) const
 Gets field without meta methods.
 
T raw_get (auto &&k, T &&def=T{}) const
 Gets field without meta methods.
 
T get_field (auto &&k, T &&def=T{}) const
 Gets field, with optional default value.
 
T get_field (auto &&k, T &&def=T{}) const
 Gets field, with optional default value.
 
void raw_set (auto &&k, auto &&v) const
 Sets a table field without meta methods.
 
void raw_set (auto &&k, auto &&v) const
 Sets a table field without meta methods.
 
void set (auto &&k, auto &&v) const
 Sets a table field.
 
void set (std::tuple< Ts... > &&t) const
 Sets multiple table fields.
 
void set (auto &&k, auto &&v) const
 Sets a table field.
 
void set (std::tuple< Ts... > &&t) const
 Sets multiple table fields.
 

Additional Inherited Members

- Protected Member Functions inherited from nngn::lua::detail::table_base< table_view >
T get_common (auto &&k, T &&def=T{}) const
 
T get_common (auto &&k, T &&def=T{}) const
 
void set_common (auto &&k, auto &&v) const
 
void set_common (auto &&k, auto &&v) const
 

Detailed Description

Non-owning reference to a table on the stack.

Constructor & Destructor Documentation

◆ table_view() [1/2]

nngn::lua::table_view::table_view ( value_view  v)
inline

◆ table_view() [2/2]

nngn::lua::table_view::table_view ( value_view  v)
inline

Member Function Documentation

◆ value_view() [1/8]

nngn::lua::value_view::value_view ( lua_State *  L,
int  i 
)
inline

◆ value_view() [2/8]

nngn::lua::value_view::value_view ( lua_State *  L,
int  i 
)
inline

◆ value_view() [3/8]

nngn::lua::value_view::value_view ( lua_State *  L,
int  i 
)
inline

◆ value_view() [4/8]

nngn::lua::value_view::value_view ( lua_State *  L,
int  i 
)
inline

◆ value_view() [5/8]

nngn::lua::value_view::value_view ( state_view  l,
int  i 
)
inline

◆ value_view() [6/8]

nngn::lua::value_view::value_view ( state_view  l,
int  i 
)
inline

◆ value_view() [7/8]

nngn::lua::value_view::value_view ( state_view  l,
int  i 
)
inline

◆ value_view() [8/8]

nngn::lua::value_view::value_view ( state_view  l,
int  i 
)
inline

The documentation for this struct was generated from the following files: