nngn
|
Table interface to the global environment. More...
#include <table.h>
Public Member Functions | |
global_table ()=default | |
global_table (const global_table &)=default | |
global_table & | operator= (const global_table &)=default |
global_table (global_table &&) noexcept=default | |
global_table & | operator= (global_table &&) noexcept=default |
global_table (state_view lua) | |
~global_table (void)=default | |
state_view | state (void) const |
int | push (void) const |
Public Member Functions inherited from nngn::lua::detail::table_base< global_table > | |
table_proxy< global_table, std::decay_t< K > > | operator[] (K &&k) const |
lua_Integer | size (void) const |
table_iter< const global_table > | begin (void) const |
lua_next -based iteration. | |
table_iter< const global_table > | end (void) const |
Sentinel for begin. | |
table_seq_iter< const global_table > | ibegin (void) const |
ipairs -style iteration. | |
table_seq_iter< const global_table > | iend (void) const |
Sentinel for ibegin. | |
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. | |
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. | |
Private Member Functions | |
int | begin_op (void) const |
void | end_op (int i) const |
Private Attributes | |
state_view | m_state = {} |
Additional Inherited Members | |
Protected Member Functions inherited from nngn::lua::detail::table_base< global_table > | |
T | get_common (auto &&k, T &&def=T{}) const |
void | set_common (auto &&k, auto &&v) const |
Table interface to the global environment.
|
default |
|
default |
|
defaultnoexcept |
|
inlineexplicit |
|
default |
|
inlineprivate |
|
inlineprivate |
|
default |
|
defaultnoexcept |
|
inline |
|
inline |
|
private |