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
 
 lua_value (arr il)
 
 lua_value (const lua_value &) noexcept=default
 
 lua_value (lua_State *L_, arr il)
 
 lua_value (lua_State *L_, reference r)
 
 lua_value (lua_State *L_, std::initializer_list< std::pair< lua_value, lua_value >> il)
 
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)
 
 lua_value (lua_value &&)=default
 
 lua_value (reference r)
 
 lua_value (std::initializer_list< std::pair< lua_value, lua_value >> il)
 
template<typename T , meta::disable< is_lua_value_single_constructible< meta::unqualified_t< T >>> = meta::enabler>
 lua_value (T &&value)
 
lua_valueoperator= (const lua_value &)=default
 
lua_valueoperator= (lua_value &&)=default
 
referencevalue () &
 
reference && value () &&
 
const referencevalue () const &
 

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 26938 of file sol.hpp.

Member Typedef Documentation

◆ is_lua_value_single_constructible

Definition at line 26954 of file sol.hpp.

◆ is_reference_or_lua_value_init_list

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 26951 of file sol.hpp.

Constructor & Destructor Documentation

◆ lua_value() [1/10]

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 26973 of file sol.hpp.

◆ lua_value() [2/10]

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 26977 of file sol.hpp.

◆ lua_value() [3/10]

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

Definition at line 26980 of file sol.hpp.

◆ lua_value() [4/10]

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

Definition at line 26987 of file sol.hpp.

◆ lua_value() [5/10]

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

Definition at line 26990 of file sol.hpp.

◆ lua_value() [6/10]

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

Definition at line 26997 of file sol.hpp.

◆ lua_value() [7/10]

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

Definition at line 27000 of file sol.hpp.

◆ lua_value() [8/10]

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

Definition at line 27007 of file sol.hpp.

◆ lua_value() [9/10]

sol::lua_value::lua_value ( const lua_value )
defaultnoexcept

◆ lua_value() [10/10]

sol::lua_value::lua_value ( lua_value &&  )
default

Member Function Documentation

◆ as()

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

Definition at line 27028 of file sol.hpp.

◆ is()

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

Definition at line 27034 of file sol.hpp.

◆ operator=() [1/2]

lua_value& sol::lua_value::operator= ( const lua_value )
default

◆ operator=() [2/2]

lua_value& sol::lua_value::operator= ( lua_value &&  )
default

◆ set_lua_state()

static void sol::lua_value::set_lua_state ( lua_State L)
inlinestatic

Definition at line 26968 of file sol.hpp.

◆ thread_local_lua_state()

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

Definition at line 26956 of file sol.hpp.

◆ value() [1/3]

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

Definition at line 27019 of file sol.hpp.

◆ value() [2/3]

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

Definition at line 27023 of file sol.hpp.

◆ value() [3/3]

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

Definition at line 27015 of file sol.hpp.

Member Data Documentation

◆ ref_value

reference sol::lua_value::ref_value
private

Definition at line 26965 of file sol.hpp.


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


plotjuggler
Author(s): Davide Faconti
autogenerated on Sun Aug 11 2024 02:24:31