Classes | Public Member Functions | Static Public Member Functions | Private Types | Static Private Member Functions | Private Attributes | List of all members
sol::lua_value Struct Reference

#include <sol.hpp>

Classes

struct  arr
 

Public Member Functions

template<typename T >
decltype(auto) as () const
 
template<typename T >
bool is () const
 
template<typename T , meta::disable< is_reference_or_lua_value_init_list< meta::unqualified_t< T >>> = meta::enabler>
 lua_value (lua_State *L_, T &&value)
 
template<typename T , meta::disable< is_lua_value_single_constructible< meta::unqualified_t< T >>> = meta::enabler>
 lua_value (T &&value)
 
 lua_value (lua_State *L_, std::initializer_list< std::pair< lua_value, lua_value >> il)
 
 lua_value (std::initializer_list< std::pair< lua_value, lua_value >> il)
 
 lua_value (lua_State *L_, arr il)
 
 lua_value (arr il)
 
 lua_value (lua_State *L_, reference r)
 
 lua_value (reference r)
 
 lua_value (const lua_value &) noexcept=default
 
 lua_value (lua_value &&)=default
 
lua_valueoperator= (const lua_value &)=default
 
lua_valueoperator= (lua_value &&)=default
 
const referencevalue () const &
 
referencevalue ()&
 
reference && value ()&&
 

Static Public Member Functions

static void set_lua_state (lua_State *L)
 

Private Types

template<typename T >
using is_lua_value_single_constructible = meta::any< std::is_same< T, lua_value >, is_reference_or_lua_value_init_list< T >>
 
template<typename T >
using is_reference_or_lua_value_init_list = meta::any< meta::is_specialization_of< T, std::initializer_list >, std::is_same< T, reference >, std::is_same< T, arr >>
 

Static Private Member Functions

static lua_State *& thread_local_lua_state ()
 

Private Attributes

reference ref_value
 

Detailed Description

Definition at line 24713 of file sol.hpp.

Member Typedef Documentation

Definition at line 24729 of file sol.hpp.

template<typename T >
using sol::lua_value::is_reference_or_lua_value_init_list = meta::any<meta::is_specialization_of<T, std::initializer_list>, std::is_same<T, reference>, std::is_same<T, arr>>
private

Definition at line 24726 of file sol.hpp.

Constructor & Destructor Documentation

template<typename T , meta::disable< is_reference_or_lua_value_init_list< meta::unqualified_t< T >>> = meta::enabler>
sol::lua_value::lua_value ( lua_State L_,
T &&  value 
)
inline

Definition at line 24748 of file sol.hpp.

template<typename T , meta::disable< is_lua_value_single_constructible< meta::unqualified_t< T >>> = meta::enabler>
sol::lua_value::lua_value ( T &&  value)
inline

Definition at line 24752 of file sol.hpp.

sol::lua_value::lua_value ( lua_State L_,
std::initializer_list< std::pair< lua_value, lua_value >>  il 
)
inline

Definition at line 24755 of file sol.hpp.

sol::lua_value::lua_value ( std::initializer_list< std::pair< lua_value, lua_value >>  il)
inline

Definition at line 24762 of file sol.hpp.

sol::lua_value::lua_value ( lua_State L_,
arr  il 
)
inline

Definition at line 24765 of file sol.hpp.

sol::lua_value::lua_value ( arr  il)
inline

Definition at line 24772 of file sol.hpp.

sol::lua_value::lua_value ( lua_State L_,
reference  r 
)
inline

Definition at line 24775 of file sol.hpp.

sol::lua_value::lua_value ( reference  r)
inline

Definition at line 24782 of file sol.hpp.

sol::lua_value::lua_value ( const lua_value )
defaultnoexcept
sol::lua_value::lua_value ( lua_value &&  )
default

Member Function Documentation

template<typename T >
decltype(auto) sol::lua_value::as ( ) const
inline

Definition at line 24803 of file sol.hpp.

template<typename T >
bool sol::lua_value::is ( ) const
inline

Definition at line 24809 of file sol.hpp.

lua_value& sol::lua_value::operator= ( const lua_value )
default
lua_value& sol::lua_value::operator= ( lua_value &&  )
default
static void sol::lua_value::set_lua_state ( lua_State L)
inlinestatic

Definition at line 24743 of file sol.hpp.

static lua_State*& sol::lua_value::thread_local_lua_state ( )
inlinestaticprivate

Definition at line 24731 of file sol.hpp.

const reference& sol::lua_value::value ( ) const
inline

Definition at line 24790 of file sol.hpp.

reference& sol::lua_value::value ( )
inline

Definition at line 24794 of file sol.hpp.

reference&& sol::lua_value::value ( )
inline

Definition at line 24798 of file sol.hpp.

Member Data Documentation

reference sol::lua_value::ref_value
private

Definition at line 24740 of file sol.hpp.


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


plotjuggler
Author(s): Davide Faconti
autogenerated on Sun Dec 6 2020 04:02:52