Public Member Functions | Public Attributes | Private Types | Private Member Functions | List of all members
sol::table_proxy< Table, Key > Struct Template Reference

#include <forward.hpp>

Public Member Functions

template<typename... Ret, typename... Args>
decltype(auto) call (Args &&... args)
 
table_proxyforce ()
 
template<typename T >
decltype(auto) get () &&
 
template<typename T >
decltype(auto) get () const &
 
template<typename T , typename D >
decltype(auto) get_or (D &&otherwise) const
 
template<typename T >
decltype(auto) get_or (T &&otherwise) const
 
template<typename T >
decltype(auto) get_or_create ()
 
template<typename T , typename Otherwise >
decltype(auto) get_or_create (Otherwise &&other)
 
type get_type () const
 
template<typename T >
bool is () const
 
lua_Statelua_state () const
 
template<typename... Args>
decltype(auto) operator() (Args &&... args)
 
template<typename T >
table_proxyoperator= (std::initializer_list< T > other) &
 
template<typename T >
table_proxy && operator= (std::initializer_list< T > other) &&
 
template<typename T >
table_proxyoperator= (T &&other) &
 
template<typename T >
table_proxy && operator= (T &&other) &&
 
template<typename K >
decltype(auto) operator[] (K &&k) &
 
template<typename K >
decltype(auto) operator[] (K &&k) &&
 
template<typename K >
decltype(auto) operator[] (K &&k) const &
 
int push () const noexcept
 
int push (lua_State *L) const noexcept
 
template<typename T >
table_proxyset (T &&item) &
 
template<typename T >
table_proxy && set (T &&item) &&
 
template<typename... Args>
table_proxyset_function (Args &&... args) &
 
template<typename... Args>
table_proxy && set_function (Args &&... args) &&
 
template<typename T >
 table_proxy (Table table, T &&k)
 
bool valid () const
 

Public Attributes

key_type key
 
Table tbl
 

Private Types

using key_type = detail::proxy_key_t< Key >
 

Private Member Functions

bool is_valid (std::false_type)
 
auto setup_table (std::true_type)
 
template<typename T , std::size_t... I>
decltype(auto) tuple_get (std::index_sequence< I... >) &&
 
template<typename T , std::size_t... I>
decltype(auto) tuple_get (std::index_sequence< I... >) const &
 
template<std::size_t... I, typename T >
void tuple_set (std::index_sequence< I... >, T &&value) &
 
template<std::size_t... I, typename T >
void tuple_set (std::index_sequence< I... >, T &&value) &&
 

Detailed Description

template<typename Table, typename Key>
struct sol::table_proxy< Table, Key >

Definition at line 1114 of file forward.hpp.

Member Typedef Documentation

◆ key_type

template<typename Table , typename Key >
using sol::table_proxy< Table, Key >::key_type = detail::proxy_key_t<Key>
private

Definition at line 24723 of file sol.hpp.

Constructor & Destructor Documentation

◆ table_proxy()

template<typename Table , typename Key >
template<typename T >
sol::table_proxy< Table, Key >::table_proxy ( Table  table,
T &&  k 
)
inline

Definition at line 24763 of file sol.hpp.

Member Function Documentation

◆ call()

template<typename Table , typename Key >
template<typename... Ret, typename... Args>
decltype(auto) sol::table_proxy< Table, Key >::call ( Args &&...  args)
inline

Definition at line 24892 of file sol.hpp.

◆ force()

template<typename Table , typename Key >
table_proxy& sol::table_proxy< Table, Key >::force ( )
inline

Definition at line 24951 of file sol.hpp.

◆ get() [1/2]

template<typename Table , typename Key >
template<typename T >
decltype(auto) sol::table_proxy< Table, Key >::get ( ) &&
inline

Definition at line 24836 of file sol.hpp.

◆ get() [2/2]

template<typename Table , typename Key >
template<typename T >
decltype(auto) sol::table_proxy< Table, Key >::get ( ) const &
inline

Definition at line 24830 of file sol.hpp.

◆ get_or() [1/2]

template<typename Table , typename Key >
template<typename T , typename D >
decltype(auto) sol::table_proxy< Table, Key >::get_or ( D &&  otherwise) const
inline

Definition at line 24852 of file sol.hpp.

◆ get_or() [2/2]

template<typename Table , typename Key >
template<typename T >
decltype(auto) sol::table_proxy< Table, Key >::get_or ( T &&  otherwise) const
inline

Definition at line 24842 of file sol.hpp.

◆ get_or_create() [1/2]

template<typename Table , typename Key >
template<typename T >
decltype(auto) sol::table_proxy< Table, Key >::get_or_create ( )
inline

Definition at line 24861 of file sol.hpp.

◆ get_or_create() [2/2]

template<typename Table , typename Key >
template<typename T , typename Otherwise >
decltype(auto) sol::table_proxy< Table, Key >::get_or_create ( Otherwise &&  other)
inline

Definition at line 24866 of file sol.hpp.

◆ get_type()

template<typename Table , typename Key >
type sol::table_proxy< Table, Key >::get_type ( ) const
inline

Definition at line 24936 of file sol.hpp.

◆ is()

template<typename Table , typename Key >
template<typename T >
bool sol::table_proxy< Table, Key >::is ( ) const
inline

Definition at line 24823 of file sol.hpp.

◆ is_valid()

template<typename Table , typename Key >
bool sol::table_proxy< Table, Key >::is_valid ( std::false_type  )
inlineprivate

Definition at line 24751 of file sol.hpp.

◆ lua_state()

template<typename Table , typename Key >
lua_State* sol::table_proxy< Table, Key >::lua_state ( ) const
inline

Definition at line 24947 of file sol.hpp.

◆ operator()()

template<typename Table , typename Key >
template<typename... Args>
decltype(auto) sol::table_proxy< Table, Key >::operator() ( Args &&...  args)
inline

Definition at line 24901 of file sol.hpp.

◆ operator=() [1/4]

template<typename Table , typename Key >
template<typename T >
table_proxy& sol::table_proxy< Table, Key >::operator= ( std::initializer_list< T >  other) &
inline

Definition at line 24813 of file sol.hpp.

◆ operator=() [2/4]

template<typename Table , typename Key >
template<typename T >
table_proxy&& sol::table_proxy< Table, Key >::operator= ( std::initializer_list< T >  other) &&
inline

Definition at line 24818 of file sol.hpp.

◆ operator=() [3/4]

template<typename Table , typename Key >
template<typename T >
table_proxy& sol::table_proxy< Table, Key >::operator= ( T &&  other) &
inline

Definition at line 24791 of file sol.hpp.

◆ operator=() [4/4]

template<typename Table , typename Key >
template<typename T >
table_proxy&& sol::table_proxy< Table, Key >::operator= ( T &&  other) &&
inline

Definition at line 24802 of file sol.hpp.

◆ operator[]() [1/3]

template<typename Table , typename Key >
template<typename K >
decltype(auto) sol::table_proxy< Table, Key >::operator[] ( K &&  k) &
inline

Definition at line 24880 of file sol.hpp.

◆ operator[]() [2/3]

template<typename Table , typename Key >
template<typename K >
decltype(auto) sol::table_proxy< Table, Key >::operator[] ( K &&  k) &&
inline

Definition at line 24886 of file sol.hpp.

◆ operator[]() [3/3]

template<typename Table , typename Key >
template<typename K >
decltype(auto) sol::table_proxy< Table, Key >::operator[] ( K &&  k) const &
inline

Definition at line 24874 of file sol.hpp.

◆ push() [1/2]

template<typename Table , typename Key >
int sol::table_proxy< Table, Key >::push ( ) const
inlinenoexcept

Definition at line 24912 of file sol.hpp.

◆ push() [2/2]

template<typename Table , typename Key >
int sol::table_proxy< Table, Key >::push ( lua_State L) const
inlinenoexcept

Definition at line 24916 of file sol.hpp.

◆ set() [1/2]

template<typename Table , typename Key >
template<typename T >
table_proxy& sol::table_proxy< Table, Key >::set ( T &&  item) &
inline

Definition at line 24767 of file sol.hpp.

◆ set() [2/2]

template<typename Table , typename Key >
template<typename T >
table_proxy&& sol::table_proxy< Table, Key >::set ( T &&  item) &&
inline

Definition at line 24773 of file sol.hpp.

◆ set_function() [1/2]

template<typename Table , typename Key >
template<typename... Args>
table_proxy& sol::table_proxy< Table, Key >::set_function ( Args &&...  args) &
inline

Definition at line 24779 of file sol.hpp.

◆ set_function() [2/2]

template<typename Table , typename Key >
template<typename... Args>
table_proxy&& sol::table_proxy< Table, Key >::set_function ( Args &&...  args) &&
inline

Definition at line 24785 of file sol.hpp.

◆ setup_table()

template<typename Table , typename Key >
auto sol::table_proxy< Table, Key >::setup_table ( std::true_type  )
inlineprivate

Definition at line 24745 of file sol.hpp.

◆ tuple_get() [1/2]

template<typename Table , typename Key >
template<typename T , std::size_t... I>
decltype(auto) sol::table_proxy< Table, Key >::tuple_get ( std::index_sequence< I... >  ) &&
inlineprivate

Definition at line 24731 of file sol.hpp.

◆ tuple_get() [2/2]

template<typename Table , typename Key >
template<typename T , std::size_t... I>
decltype(auto) sol::table_proxy< Table, Key >::tuple_get ( std::index_sequence< I... >  ) const &
inlineprivate

Definition at line 24726 of file sol.hpp.

◆ tuple_set() [1/2]

template<typename Table , typename Key >
template<std::size_t... I, typename T >
void sol::table_proxy< Table, Key >::tuple_set ( std::index_sequence< I... >  ,
T &&  value 
) &
inlineprivate

Definition at line 24736 of file sol.hpp.

◆ tuple_set() [2/2]

template<typename Table , typename Key >
template<std::size_t... I, typename T >
void sol::table_proxy< Table, Key >::tuple_set ( std::index_sequence< I... >  ,
T &&  value 
) &&
inlineprivate

Definition at line 24741 of file sol.hpp.

◆ valid()

template<typename Table , typename Key >
bool sol::table_proxy< Table, Key >::valid ( ) const
inline

Definition at line 24905 of file sol.hpp.

Member Data Documentation

◆ key

template<typename Table , typename Key >
key_type sol::table_proxy< Table, Key >::key

Definition at line 24760 of file sol.hpp.

◆ tbl

template<typename Table , typename Key >
Table sol::table_proxy< Table, Key >::tbl

Definition at line 24759 of file sol.hpp.


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


plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:53