nngn
|
Expression template for table assignemnts. More...
#include <table.h>
Public Member Functions | |
table_proxy (const T &t, auto &&k) | |
template<typename V > | |
table_proxy & | operator= (V &&v) |
template<typename V > | |
operator V (void) const | |
template<typename K > | |
table_proxy< T, Ks..., std::decay_t< K > > | operator[] (K &&k) const |
const T & | table (void) const |
const std::tuple< Ks... > & | keys (void) const |
state_view | state (void) const |
template<typename V > | |
V | get (V &&def=V{}) const |
void | set (auto &&v) const |
int | push (void) const |
template<typename K > | |
auto | operator[] (K &&k) const -> table_proxy< T, Ks..., std::decay_t< K > > |
Private Member Functions | |
auto | key (void) const |
auto | push_sub (void) const |
auto | make_sub (const auto &t) const |
Private Attributes | |
const T & | m_table |
std::tuple< Ks... > | m_keys |
Expression template for table assignemnts.
|
inline |
V nngn::lua::table_proxy< T, Ks >::get | ( | V && | def = V{} | ) | const |
|
inlineprivate |
|
inline |
|
private |
|
inline |
|
inline |
table_proxy< T, Ks..., std::decay_t< K > > nngn::lua::table_proxy< T, Ks >::operator[] | ( | K && | k | ) | const |
auto nngn::lua::table_proxy< T, Ks >::operator[] | ( | K && | k | ) | const -> table_proxy<T, Ks..., std::decay_t<K>> |
|
inline |
|
private |
void nngn::lua::table_proxy< T, Ks >::set | ( | auto && | v | ) | const |
|
inline |
|
inline |
|
private |
|
private |