Namespaces | Classes | Functions
sol::stack Namespace Reference

Namespaces

 stack_detail
 

Classes

struct  field_getter
 
struct  field_getter< std::pair< A, B >, b, raw, C >
 
struct  field_getter< std::tuple< Args... >, b, raw, C >
 
struct  field_setter
 
struct  field_setter< std::pair< A, B >, b, raw, C >
 
struct  field_setter< std::tuple< Args... >, b, raw, C >
 
struct  popper
 
struct  probe
 
struct  probe_field_getter
 
struct  probe_field_getter< std::pair< A, B >, P, b, raw, C >
 
struct  probe_field_getter< std::tuple< Args... >, P, b, raw, C >
 
struct  push_popper
 
struct  push_popper< false, T, std::enable_if_t< is_stack_based_v< meta::unqualified_t< T > > > >
 
struct  push_popper< true, T, C >
 
struct  push_popper_at
 
struct  push_popper_n
 
struct  push_popper_n< true >
 
struct  qualified_check_getter
 
struct  qualified_checker
 
struct  qualified_getter
 
struct  qualified_getter< Optional, std::enable_if_t< meta::is_optional_v< Optional > > >
 
struct  qualified_interop_checker
 
struct  qualified_interop_getter
 
struct  record
 
struct  stateless_push_popper
 
struct  stateless_push_popper< false, T, std::enable_if_t< is_stack_based_v< meta::unqualified_t< T > > > >
 
struct  stateless_push_popper< true, T, C >
 
struct  unqualified_check_getter
 
struct  unqualified_check_getter< lua_thread_state >
 
struct  unqualified_check_getter< std::variant< Tn... >, C >
 
struct  unqualified_checker
 
struct  unqualified_checker< detail::as_pointer_tag< T >, type::userdata >
 
struct  unqualified_checker< detail::as_value_tag< T >, type::userdata >
 
struct  unqualified_checker< non_null< T >, type::userdata >
 
struct  unqualified_checker< std::pair< A, B >, type::poly >
 
struct  unqualified_checker< std::tuple< Args... >, type::poly >
 
struct  unqualified_checker< std::variant< Tn... >, type::poly >
 
struct  unqualified_getter
 
struct  unqualified_getter< as_container_t< T > * >
 
struct  unqualified_getter< as_container_t< T > >
 
struct  unqualified_getter< as_table_t< std::forward_list< T, Al > > >
 
struct  unqualified_getter< as_table_t< T > >
 
struct  unqualified_getter< basic_bytecode< Allocator > >
 
struct  unqualified_getter< basic_string_view< char, Traits > >
 
struct  unqualified_getter< c_closure >
 
struct  unqualified_getter< char >
 
struct  unqualified_getter< char16_t >
 
struct  unqualified_getter< char32_t >
 
struct  unqualified_getter< const char * >
 
struct  unqualified_getter< const void * >
 
struct  unqualified_getter< detail::as_pointer_tag< T > >
 
struct  unqualified_getter< detail::as_value_tag< T > >
 
struct  unqualified_getter< env_key_t >
 
struct  unqualified_getter< error >
 
struct  unqualified_getter< light< T > >
 
struct  unqualified_getter< lightuserdata_value >
 
struct  unqualified_getter< lua_CFunction >
 
struct  unqualified_getter< lua_nil_t >
 
struct  unqualified_getter< lua_thread_state >
 
struct  unqualified_getter< lua_value >
 
struct  unqualified_getter< meta_function >
 
struct  unqualified_getter< metatable_key_t >
 
struct  unqualified_getter< nested< T > >
 
struct  unqualified_getter< non_null< T * > >
 
struct  unqualified_getter< nullopt_t >
 
struct  unqualified_getter< stack_proxy >
 
struct  unqualified_getter< stack_proxy_base >
 
struct  unqualified_getter< std::basic_string< char16_t, Traits, Al > >
 
struct  unqualified_getter< std::basic_string< char32_t, Traits, Al > >
 
struct  unqualified_getter< std::basic_string< wchar_t, Traits, Al > >
 
struct  unqualified_getter< std::function< Signature > >
 
struct  unqualified_getter< std::nullptr_t >
 
struct  unqualified_getter< std::pair< A, B > >
 
struct  unqualified_getter< std::reference_wrapper< T > >
 
struct  unqualified_getter< std::string >
 
struct  unqualified_getter< std::tuple< Tn... > >
 
struct  unqualified_getter< std::variant< Tn... > >
 
struct  unqualified_getter< T & >
 
struct  unqualified_getter< T * >
 
struct  unqualified_getter< this_environment >
 
struct  unqualified_getter< this_main_state >
 
struct  unqualified_getter< this_state >
 
struct  unqualified_getter< type >
 
struct  unqualified_getter< user< T * > >
 
struct  unqualified_getter< user< T > >
 
struct  unqualified_getter< userdata_value >
 
struct  unqualified_getter< variadic_args >
 
struct  unqualified_getter< void * >
 
struct  unqualified_getter< wchar_t >
 
struct  unqualified_interop_checker
 
struct  unqualified_interop_getter
 
struct  unqualified_pusher
 
struct  unqualified_pusher< absolute_index >
 
struct  unqualified_pusher< as_args_t< T > >
 
struct  unqualified_pusher< as_container_t< T * > >
 
struct  unqualified_pusher< as_container_t< T > >
 
struct  unqualified_pusher< as_returns_t< T > >
 
struct  unqualified_pusher< as_table_t< T > >
 
struct  unqualified_pusher< basic_bytecode< Allocator > >
 
struct  unqualified_pusher< basic_string_view< Ch, Traits > >
 
struct  unqualified_pusher< basic_variadic_results< Al > >
 
struct  unqualified_pusher< c_closure >
 
struct  unqualified_pusher< char * >
 
struct  unqualified_pusher< char >
 
struct  unqualified_pusher< char16_t * >
 
struct  unqualified_pusher< char16_t >
 
struct  unqualified_pusher< char16_t[N]>
 
struct  unqualified_pusher< char32_t * >
 
struct  unqualified_pusher< char32_t >
 
struct  unqualified_pusher< char32_t[N]>
 
struct  unqualified_pusher< char[N]>
 
struct  unqualified_pusher< closure< Arg, Args... > >
 
struct  unqualified_pusher< const char * >
 
struct  unqualified_pusher< const char16_t * >
 
struct  unqualified_pusher< const char32_t * >
 
struct  unqualified_pusher< const void * >
 
struct  unqualified_pusher< const wchar_t * >
 
struct  unqualified_pusher< constructor_list< L0, Lists... > >
 
struct  unqualified_pusher< constructor_wrapper< F, Fxs... > >
 
struct  unqualified_pusher< destructor_wrapper< Fx > >
 
struct  unqualified_pusher< detail::as_pointer_tag< T > >
 
struct  unqualified_pusher< detail::as_reference_tag >
 
struct  unqualified_pusher< detail::as_table_tag< T > >
 
struct  unqualified_pusher< detail::as_unique_tag< T > >
 
struct  unqualified_pusher< detail::as_value_tag< T > >
 
struct  unqualified_pusher< detail::lua_CFunction_noexcept >
 
struct  unqualified_pusher< detail::tagged< T, constructor_list< Lists... > > >
 
struct  unqualified_pusher< detail::tagged< T, constructor_wrapper< Fxs... > > >
 
struct  unqualified_pusher< detail::tagged< T, destructor_wrapper< Fx > > >
 
struct  unqualified_pusher< detail::tagged< T, destructor_wrapper< void > > >
 
struct  unqualified_pusher< detail::tagged< T, no_construction > >
 
struct  unqualified_pusher< detail::tagged< T, policy_wrapper< F, Policies... > > >
 
struct  unqualified_pusher< factory_wrapper< Functions... > >
 
struct  unqualified_pusher< forward_as_value_t< T > >
 
struct  unqualified_pusher< function_arguments< T, Args... > >
 
struct  unqualified_pusher< function_sig< Sigs... > >
 
struct  unqualified_pusher< light< T > >
 
struct  unqualified_pusher< lightuserdata_value >
 
struct  unqualified_pusher< lua_CFunction >
 
struct  unqualified_pusher< lua_nil_t >
 
struct  unqualified_pusher< lua_thread_state >
 
struct  unqualified_pusher< lua_value >
 
struct  unqualified_pusher< meta_function >
 
struct  unqualified_pusher< metatable_key_t >
 
struct  unqualified_pusher< nested< T > >
 
struct  unqualified_pusher< new_table >
 
struct  unqualified_pusher< no_construction >
 
struct  unqualified_pusher< nullopt_t >
 
struct  unqualified_pusher< overload_set< Functions... > >
 
struct  unqualified_pusher< policy_wrapper< F, Policies... > >
 
struct  unqualified_pusher< property_wrapper< F, G > >
 
struct  unqualified_pusher< protect_t< T > >
 
struct  unqualified_pusher< protected_function_result >
 
struct  unqualified_pusher< push_invoke_t< T > >
 
struct  unqualified_pusher< raw_index >
 
struct  unqualified_pusher< ref_index >
 
struct  unqualified_pusher< Signature, std::enable_if_t< meta::all< std::is_function< std::remove_pointer_t< Signature > >, meta::neg< std::is_same< Signature, lua_CFunction > >, meta::neg< std::is_same< Signature, std::remove_pointer_t< lua_CFunction > > >, meta::neg< std::is_same< Signature, detail::lua_CFunction_noexcept > >, meta::neg< std::is_same< Signature, std::remove_pointer_t< detail::lua_CFunction_noexcept > > > >::value > >
 
struct  unqualified_pusher< Signature, std::enable_if_t< meta::is_member_object_or_function_v< Signature > > >
 
struct  unqualified_pusher< stack_count >
 
struct  unqualified_pusher< stack_proxy >
 
struct  unqualified_pusher< stack_proxy_base >
 
struct  unqualified_pusher< std::basic_string< Ch, Traits, Al > >
 
struct  unqualified_pusher< std::function< Signature > >
 
struct  unqualified_pusher< std::initializer_list< T > >
 
struct  unqualified_pusher< std::nullptr_t >
 
struct  unqualified_pusher< std::pair< A, B > >
 
struct  unqualified_pusher< std::reference_wrapper< T > >
 
struct  unqualified_pusher< std::remove_pointer_t< detail::lua_CFunction_noexcept > >
 
struct  unqualified_pusher< std::remove_pointer_t< lua_CFunction > >
 
struct  unqualified_pusher< std::tuple< Args... > >
 
struct  unqualified_pusher< std::variant< Tn... > >
 
struct  unqualified_pusher< T *, std::enable_if_t< is_container_v< T > > >
 
struct  unqualified_pusher< T, std::enable_if_t< is_container_v< T > > >
 
struct  unqualified_pusher< T, std::enable_if_t< meta::is_optional_v< T > > >
 
struct  unqualified_pusher< table_proxy< Table, Key > >
 
struct  unqualified_pusher< this_main_state >
 
struct  unqualified_pusher< this_state >
 
struct  unqualified_pusher< unsafe_function_result >
 
struct  unqualified_pusher< user< T > >
 
struct  unqualified_pusher< userdata_value >
 
struct  unqualified_pusher< var_wrapper< T > >
 
struct  unqualified_pusher< variadic_args >
 
struct  unqualified_pusher< variadic_results >
 
struct  unqualified_pusher< void * >
 
struct  unqualified_pusher< wchar_t * >
 
struct  unqualified_pusher< wchar_t >
 
struct  unqualified_pusher< wchar_t[N]>
 
struct  unqualified_pusher< yielding_t< T > >
 

Functions

template<bool check_args = detail::default_safe_function_calls, typename R , typename... Args, typename Fx , typename... FxArgs>
decltype(auto) call (types< R > tr, types< Args... > ta, lua_State *L, Fx &&fx, FxArgs &&... args)
 
template<bool check_args = detail::default_safe_function_calls, typename R , typename... Args, typename Fx , typename... FxArgs>
decltype(auto) call (types< R > tr, types< Args... > ta, lua_State *L, int start, Fx &&fx, FxArgs &&... args)
 
template<bool check_args = detail::default_safe_function_calls, typename R , typename... Args, typename Fx , typename... FxArgs>
decltype(auto) call_from_top (types< R > tr, types< Args... > ta, lua_State *L, Fx &&fx, FxArgs &&... args)
 
template<bool check_args = detail::default_safe_function_calls, bool clean_stack = true, typename Ret0 , typename... Ret, typename... Args, typename Fx , typename... FxArgs>
int call_into_lua (types< Ret0, Ret... > tr, types< Args... > ta, lua_State *L, int start, Fx &&fx, FxArgs &&... fxargs)
 
template<bool check_args = detail::default_safe_function_calls, bool clean_stack = true, typename Fx , typename... FxArgs>
int call_lua (lua_State *L, int start, Fx &&fx, FxArgs &&... fxargs)
 
template<typename T , typename Handler >
bool check (lua_State *L, int index, Handler &&handler)
 
template<typename T , typename Handler >
bool check (lua_State *L, int index, Handler &&handler, record &tracking)
 
template<typename T >
bool check (lua_State *L, int index=-lua_size< meta::unqualified_t< T >>::value)
 
template<typename T , typename Handler >
decltype(auto) check_get (lua_State *L, int index, Handler &&handler)
 
template<typename T , typename Handler >
decltype(auto) check_get (lua_State *L, int index, Handler &&handler, record &tracking)
 
template<typename T >
decltype(auto) check_get (lua_State *L, int index=-lua_size< meta::unqualified_t< T >>::value)
 
template<typename T , typename Handler >
bool check_usertype (lua_State *L, int index, Handler &&handler)
 
template<typename T , typename Handler >
bool check_usertype (lua_State *L, int index, Handler &&handler, record &tracking)
 
template<typename T , typename Handler >
bool check_usertype (lua_State *L, int index, type, Handler &&handler, record &tracking)
 
template<typename T >
bool check_usertype (lua_State *L, int index=-lua_size< meta::unqualified_t< T >>::value)
 
void clear (lua_State *L, int table_index)
 
void clear (lua_State *L_, stateless_reference &r)
 
void clear (lua_State *L_, stateless_stack_reference &r)
 
void clear (reference &r)
 
void clear (stack_reference &r)
 
void coroutine_create_guard (lua_State *L)
 
template<typename T >
auto get (lua_State *L, int index, record &tracking) -> decltype(stack_detail::unchecked_get< T >(L, index, tracking))
 
template<typename T >
decltype(auto) get (lua_State *L, int index=-lua_size< meta::unqualified_t< T >>::value)
 
call_syntax get_call_syntax (lua_State *L, const string_view &key, int index)
 
template<bool global = false, bool raw = false, typename Key >
void get_field (lua_State *L, Key &&key)
 
template<bool global = false, bool raw = false, typename Key >
void get_field (lua_State *L, Key &&key, int tableindex)
 
error get_traceback_or_errors (lua_State *L)
 
template<typename T >
decltype(auto) get_usertype (lua_State *L, int index, record &tracking)
 
template<typename T >
decltype(auto) get_usertype (lua_State *L, int index=-lua_size_v< meta::unqualified_t< T >>)
 
bool is_main_thread (lua_State *L)
 
template<typename Handler >
bool loose_table_check (lua_State *L_, int index, Handler &&handler, record &tracking)
 
void luajit_exception_handler (lua_State *L, int(*handler)(lua_State *, lua_CFunction)=detail::c_trampoline)
 
void luajit_exception_off (lua_State *L)
 
bool maybe_indexable (lua_State *L, int index=-1)
 
template<typename F >
void modify_unique_usertype (const stack_reference &obj, F &&f)
 
template<typename T , typename F >
void modify_unique_usertype_as (const stack_reference &obj, F &&f)
 
template<typename... Args>
bool multi_check (lua_State *L, int index)
 
template<typename... Args, typename Handler >
bool multi_check (lua_State *L, int index, Handler &&handler)
 
template<typename... Args, typename Handler >
bool multi_check (lua_State *L, int index, Handler &&handler, record &tracking)
 
int multi_push (lua_State *)
 
template<typename T , typename... Args>
int multi_push (lua_State *L, T &&t, Args &&... args)
 
int multi_push_reference (lua_State *)
 
template<typename T , typename... Args>
int multi_push_reference (lua_State *L, T &&t, Args &&... args)
 
template<typename T >
decltype(auto) pop (lua_State *L)
 
template<bool top_level = false>
push_popper_n< top_level > pop_n (lua_State *L_, int pop_count_)
 
template<bool global = false, bool raw = false, typename C = detail::non_lua_nil_t, typename Key >
probe probe_get_field (lua_State *L, Key &&key)
 
template<bool global = false, bool raw = false, typename C = detail::non_lua_nil_t, typename Key >
probe probe_get_field (lua_State *L, Key &&key, int tableindex)
 
template<bool global = false, typename C = detail::non_lua_nil_t, typename Key >
probe probe_raw_get_field (lua_State *L, Key &&key)
 
template<bool global = false, typename C = detail::non_lua_nil_t, typename Key >
probe probe_raw_get_field (lua_State *L, Key &&key, int tableindex)
 
template<typename T , typename Arg , typename... Args, typename = std::enable_if_t<!std::is_same<T, Arg>::value>>
int push (lua_State *L, Arg &&arg, Args &&... args)
 
template<typename T , typename... Args>
int push (lua_State *L, T &&t, Args &&... args)
 
template<typename T >
int push_environment_of (const T &target)
 
int push_environment_of (lua_State *L, int target_index=-1)
 
template<bool top_level = false, typename T >
stateless_push_popper< top_level, T > push_pop (lua_State *L_, T &&object_)
 
template<bool top_level = false, typename T >
push_popper< top_level, T > push_pop (T &&x)
 
template<typename T >
push_popper_at push_pop_at (T &&object_)
 
template<typename T , typename Arg , typename... Args>
int push_reference (lua_State *L, Arg &&arg, Args &&... args)
 
template<typename T , typename... Args>
int push_reference (lua_State *L, T &&t, Args &&... args)
 
template<typename T , typename Arg , typename... Args>
int push_userdata (lua_State *L, Arg &&arg, Args &&... args)
 
template<typename T , typename... Args>
int push_userdata (lua_State *L, T &&t, Args &&... args)
 
template<bool global = false, typename Key >
void raw_get_field (lua_State *L, Key &&key)
 
template<bool global = false, typename Key >
void raw_get_field (lua_State *L, Key &&key, int tableindex)
 
template<bool global = false, typename Key , typename Value >
void raw_set_field (lua_State *L, Key &&key, Value &&value)
 
template<bool global = false, typename Key , typename Value >
void raw_set_field (lua_State *L, Key &&key, Value &&value, int tableindex)
 
void remove (lua_State *L_, int rawindex, int count)
 
void script (lua_State *L, const string_view &code, const std::string &chunkname=detail::default_chunk_name(), load_mode mode=load_mode::any)
 
void script (lua_State *L, lua_Reader reader, void *data, const std::string &chunkname=detail::default_chunk_name(), load_mode mode=load_mode::any)
 
void script_file (lua_State *L, const std::string &filename, load_mode mode=load_mode::any)
 
template<bool global = false, bool raw = false, typename Key , typename Value >
void set_field (lua_State *L, Key &&key, Value &&value)
 
template<bool global = false, bool raw = false, typename Key , typename Value >
void set_field (lua_State *L, Key &&key, Value &&value, int tableindex)
 
template<typename T >
int set_ref (lua_State *L, T &&arg, int tableindex=-2)
 
int top (lua_State *L)
 
template<typename T , typename Handler >
bool unqualified_check (lua_State *L, int index, Handler &&handler)
 
template<typename T , typename Handler >
bool unqualified_check (lua_State *L, int index, Handler &&handler, record &tracking)
 
template<typename T >
bool unqualified_check (lua_State *L, int index=-lua_size< meta::unqualified_t< T >>::value)
 
template<typename T , typename Handler >
decltype(auto) unqualified_check_get (lua_State *L, int index, Handler &&handler)
 
template<typename T , typename Handler >
decltype(auto) unqualified_check_get (lua_State *L, int index, Handler &&handler, record &tracking)
 
template<typename T >
decltype(auto) unqualified_check_get (lua_State *L, int index=-lua_size< meta::unqualified_t< T >>::value)
 
template<typename T >
auto unqualified_get (lua_State *L, int index, record &tracking) -> decltype(stack_detail::unchecked_unqualified_get< T >(L, index, tracking))
 
template<typename T >
decltype(auto) unqualified_get (lua_State *L, int index=-lua_size< meta::unqualified_t< T >>::value)
 

Function Documentation

◆ call() [1/2]

template<bool check_args = detail::default_safe_function_calls, typename R , typename... Args, typename Fx , typename... FxArgs>
decltype(auto) sol::stack::call ( types< R >  tr,
types< Args... >  ta,
lua_State L,
Fx &&  fx,
FxArgs &&...  args 
)
inline

Definition at line 16578 of file sol.hpp.

◆ call() [2/2]

template<bool check_args = detail::default_safe_function_calls, typename R , typename... Args, typename Fx , typename... FxArgs>
decltype(auto) sol::stack::call ( types< R >  tr,
types< Args... >  ta,
lua_State L,
int  start,
Fx &&  fx,
FxArgs &&...  args 
)
inline

Definition at line 16567 of file sol.hpp.

◆ call_from_top()

template<bool check_args = detail::default_safe_function_calls, typename R , typename... Args, typename Fx , typename... FxArgs>
decltype(auto) sol::stack::call_from_top ( types< R >  tr,
types< Args... >  ta,
lua_State L,
Fx &&  fx,
FxArgs &&...  args 
)
inline

Definition at line 16588 of file sol.hpp.

◆ call_into_lua()

template<bool check_args = detail::default_safe_function_calls, bool clean_stack = true, typename Ret0 , typename... Ret, typename... Args, typename Fx , typename... FxArgs>
int sol::stack::call_into_lua ( types< Ret0, Ret... >  tr,
types< Args... >  ta,
lua_State L,
int  start,
Fx &&  fx,
FxArgs &&...  fxargs 
)
inline

Definition at line 16610 of file sol.hpp.

◆ call_lua()

template<bool check_args = detail::default_safe_function_calls, bool clean_stack = true, typename Fx , typename... FxArgs>
int sol::stack::call_lua ( lua_State L,
int  start,
Fx &&  fx,
FxArgs &&...  fxargs 
)
inline

Definition at line 16632 of file sol.hpp.

◆ check() [1/3]

template<typename T , typename Handler >
bool sol::stack::check ( lua_State L,
int  index,
Handler &&  handler 
)

Definition at line 11893 of file sol.hpp.

◆ check() [2/3]

template<typename T , typename Handler >
bool sol::stack::check ( lua_State L,
int  index,
Handler &&  handler,
record tracking 
)

Definition at line 11881 of file sol.hpp.

◆ check() [3/3]

template<typename T >
bool sol::stack::check ( lua_State L,
int  index = -lua_size<meta::unqualified_t<T>>::value 
)

Definition at line 11899 of file sol.hpp.

◆ check_get() [1/3]

template<typename T , typename Handler >
decltype(auto) sol::stack::check_get ( lua_State L,
int  index,
Handler &&  handler 
)

Definition at line 11969 of file sol.hpp.

◆ check_get() [2/3]

template<typename T , typename Handler >
decltype(auto) sol::stack::check_get ( lua_State L,
int  index,
Handler &&  handler,
record tracking 
)

Definition at line 11958 of file sol.hpp.

◆ check_get() [3/3]

template<typename T >
decltype(auto) sol::stack::check_get ( lua_State L,
int  index = -lua_size<meta::unqualified_t<T>>::value 
)

Definition at line 11975 of file sol.hpp.

◆ check_usertype() [1/4]

template<typename T , typename Handler >
bool sol::stack::check_usertype ( lua_State L,
int  index,
Handler &&  handler 
)

Definition at line 11919 of file sol.hpp.

◆ check_usertype() [2/4]

template<typename T , typename Handler >
bool sol::stack::check_usertype ( lua_State L,
int  index,
Handler &&  handler,
record tracking 
)

Definition at line 11912 of file sol.hpp.

◆ check_usertype() [3/4]

template<typename T , typename Handler >
bool sol::stack::check_usertype ( lua_State L,
int  index,
type  ,
Handler &&  handler,
record tracking 
)

Definition at line 11905 of file sol.hpp.

◆ check_usertype() [4/4]

template<typename T >
bool sol::stack::check_usertype ( lua_State L,
int  index = -lua_size<meta::unqualified_t<T>>::value 
)

Definition at line 11925 of file sol.hpp.

◆ clear() [1/5]

void sol::stack::clear ( lua_State L,
int  table_index 
)
inline

Definition at line 11710 of file sol.hpp.

◆ clear() [2/5]

void sol::stack::clear ( lua_State L_,
stateless_reference r 
)
inline

Definition at line 11734 of file sol.hpp.

◆ clear() [3/5]

void sol::stack::clear ( lua_State L_,
stateless_stack_reference r 
)
inline

Definition at line 11741 of file sol.hpp.

◆ clear() [4/5]

void sol::stack::clear ( reference r)
inline

Definition at line 11724 of file sol.hpp.

◆ clear() [5/5]

void sol::stack::clear ( stack_reference r)
inline

Definition at line 11730 of file sol.hpp.

◆ coroutine_create_guard()

void sol::stack::coroutine_create_guard ( lua_State L)
inline

Definition at line 11694 of file sol.hpp.

◆ get() [1/2]

template<typename T >
auto sol::stack::get ( lua_State L,
int  index,
record tracking 
) -> decltype(stack_detail::unchecked_get<T>(L, index, tracking))

Definition at line 12043 of file sol.hpp.

◆ get() [2/2]

template<typename T >
decltype(auto) sol::stack::get ( lua_State L,
int  index = -lua_size<meta::unqualified_t<T>>::value 
)

Definition at line 12062 of file sol.hpp.

◆ get_call_syntax()

call_syntax sol::stack::get_call_syntax ( lua_State L,
const string_view key,
int  index 
)
inline

Definition at line 16639 of file sol.hpp.

◆ get_field() [1/2]

template<bool global = false, bool raw = false, typename Key >
void sol::stack::get_field ( lua_State L,
Key &&  key 
)

Definition at line 12085 of file sol.hpp.

◆ get_field() [2/2]

template<bool global = false, bool raw = false, typename Key >
void sol::stack::get_field ( lua_State L,
Key &&  key,
int  tableindex 
)

Definition at line 12090 of file sol.hpp.

◆ get_traceback_or_errors()

error sol::stack::get_traceback_or_errors ( lua_State L)
inline

Definition at line 27221 of file sol.hpp.

◆ get_usertype() [1/2]

template<typename T >
decltype(auto) sol::stack::get_usertype ( lua_State L,
int  index,
record tracking 
)

Definition at line 12068 of file sol.hpp.

◆ get_usertype() [2/2]

template<typename T >
decltype(auto) sol::stack::get_usertype ( lua_State L,
int  index = -lua_size_v<meta::unqualified_t<T>> 
)

Definition at line 12074 of file sol.hpp.

◆ is_main_thread()

bool sol::stack::is_main_thread ( lua_State L)
inline

Definition at line 11688 of file sol.hpp.

◆ loose_table_check()

template<typename Handler >
bool sol::stack::loose_table_check ( lua_State L_,
int  index,
Handler &&  handler,
record tracking 
)

Definition at line 12344 of file sol.hpp.

◆ luajit_exception_handler()

void sol::stack::luajit_exception_handler ( lua_State L,
int(*)(lua_State *, lua_CFunction handler = detail::c_trampoline 
)
inline

Definition at line 16676 of file sol.hpp.

◆ luajit_exception_off()

void sol::stack::luajit_exception_off ( lua_State L)
inline

Definition at line 16693 of file sol.hpp.

◆ maybe_indexable()

bool sol::stack::maybe_indexable ( lua_State L,
int  index = -1 
)
inline

Definition at line 11679 of file sol.hpp.

◆ modify_unique_usertype()

template<typename F >
void sol::stack::modify_unique_usertype ( const stack_reference obj,
F &&  f 
)

Definition at line 12155 of file sol.hpp.

◆ modify_unique_usertype_as()

template<typename T , typename F >
void sol::stack::modify_unique_usertype_as ( const stack_reference obj,
F &&  f 
)

Definition at line 12145 of file sol.hpp.

◆ multi_check() [1/3]

template<typename... Args>
bool sol::stack::multi_check ( lua_State L,
int  index 
)

Definition at line 12013 of file sol.hpp.

◆ multi_check() [2/3]

template<typename... Args, typename Handler >
bool sol::stack::multi_check ( lua_State L,
int  index,
Handler &&  handler 
)

Definition at line 12007 of file sol.hpp.

◆ multi_check() [3/3]

template<typename... Args, typename Handler >
bool sol::stack::multi_check ( lua_State L,
int  index,
Handler &&  handler,
record tracking 
)

Definition at line 12002 of file sol.hpp.

◆ multi_push() [1/2]

int sol::stack::multi_push ( lua_State )
inline

Definition at line 11832 of file sol.hpp.

◆ multi_push() [2/2]

template<typename T , typename... Args>
int sol::stack::multi_push ( lua_State L,
T &&  t,
Args &&...  args 
)

Definition at line 11838 of file sol.hpp.

◆ multi_push_reference() [1/2]

int sol::stack::multi_push_reference ( lua_State )
inline

Definition at line 11844 of file sol.hpp.

◆ multi_push_reference() [2/2]

template<typename T , typename... Args>
int sol::stack::multi_push_reference ( lua_State L,
T &&  t,
Args &&...  args 
)

Definition at line 11850 of file sol.hpp.

◆ pop()

template<typename T >
decltype(auto) sol::stack::pop ( lua_State L)

Definition at line 12080 of file sol.hpp.

◆ pop_n()

template<bool top_level = false>
push_popper_n<top_level> sol::stack::pop_n ( lua_State L_,
int  pop_count_ 
)

Definition at line 10119 of file sol.hpp.

◆ probe_get_field() [1/2]

template<bool global = false, bool raw = false, typename C = detail::non_lua_nil_t, typename Key >
probe sol::stack::probe_get_field ( lua_State L,
Key &&  key 
)

Definition at line 12105 of file sol.hpp.

◆ probe_get_field() [2/2]

template<bool global = false, bool raw = false, typename C = detail::non_lua_nil_t, typename Key >
probe sol::stack::probe_get_field ( lua_State L,
Key &&  key,
int  tableindex 
)

Definition at line 12110 of file sol.hpp.

◆ probe_raw_get_field() [1/2]

template<bool global = false, typename C = detail::non_lua_nil_t, typename Key >
probe sol::stack::probe_raw_get_field ( lua_State L,
Key &&  key 
)

Definition at line 12115 of file sol.hpp.

◆ probe_raw_get_field() [2/2]

template<bool global = false, typename C = detail::non_lua_nil_t, typename Key >
probe sol::stack::probe_raw_get_field ( lua_State L,
Key &&  key,
int  tableindex 
)

Definition at line 12120 of file sol.hpp.

◆ push() [1/2]

template<typename T , typename Arg , typename... Args, typename = std::enable_if_t<!std::is_same<T, Arg>::value>>
int sol::stack::push ( lua_State L,
Arg &&  arg,
Args &&...  args 
)

Definition at line 11765 of file sol.hpp.

◆ push() [2/2]

template<typename T , typename... Args>
int sol::stack::push ( lua_State L,
T &&  t,
Args &&...  args 
)

Definition at line 11746 of file sol.hpp.

◆ push_environment_of() [1/2]

template<typename T >
int sol::stack::push_environment_of ( const T &  target)

Definition at line 14795 of file sol.hpp.

◆ push_environment_of() [2/2]

int sol::stack::push_environment_of ( lua_State L,
int  target_index = -1 
)
inline

Definition at line 14757 of file sol.hpp.

◆ push_pop() [1/2]

template<bool top_level = false, typename T >
stateless_push_popper<top_level, T> sol::stack::push_pop ( lua_State L_,
T &&  object_ 
)

Definition at line 10107 of file sol.hpp.

◆ push_pop() [2/2]

template<bool top_level = false, typename T >
push_popper<top_level, T> sol::stack::push_pop ( T &&  x)

Definition at line 10102 of file sol.hpp.

◆ push_pop_at()

template<typename T >
push_popper_at sol::stack::push_pop_at ( T &&  object_)

Definition at line 10112 of file sol.hpp.

◆ push_reference() [1/2]

template<typename T , typename Arg , typename... Args>
int sol::stack::push_reference ( lua_State L,
Arg &&  arg,
Args &&...  args 
)

Definition at line 11828 of file sol.hpp.

◆ push_reference() [2/2]

template<typename T , typename... Args>
int sol::stack::push_reference ( lua_State L,
T &&  t,
Args &&...  args 
)

Definition at line 11823 of file sol.hpp.

◆ push_userdata() [1/2]

template<typename T , typename Arg , typename... Args>
int sol::stack::push_userdata ( lua_State L,
Arg &&  arg,
Args &&...  args 
)

Definition at line 11792 of file sol.hpp.

◆ push_userdata() [2/2]

template<typename T , typename... Args>
int sol::stack::push_userdata ( lua_State L,
T &&  t,
Args &&...  args 
)

Definition at line 11783 of file sol.hpp.

◆ raw_get_field() [1/2]

template<bool global = false, typename Key >
void sol::stack::raw_get_field ( lua_State L,
Key &&  key 
)

Definition at line 12095 of file sol.hpp.

◆ raw_get_field() [2/2]

template<bool global = false, typename Key >
void sol::stack::raw_get_field ( lua_State L,
Key &&  key,
int  tableindex 
)

Definition at line 12100 of file sol.hpp.

◆ raw_set_field() [1/2]

template<bool global = false, typename Key , typename Value >
void sol::stack::raw_set_field ( lua_State L,
Key &&  key,
Value &&  value 
)

Definition at line 12135 of file sol.hpp.

◆ raw_set_field() [2/2]

template<bool global = false, typename Key , typename Value >
void sol::stack::raw_set_field ( lua_State L,
Key &&  key,
Value &&  value,
int  tableindex 
)

Definition at line 12140 of file sol.hpp.

◆ remove()

void sol::stack::remove ( lua_State L_,
int  rawindex,
int  count 
)
inline

Definition at line 9945 of file sol.hpp.

◆ script() [1/2]

void sol::stack::script ( lua_State L,
const string_view code,
const std::string &  chunkname = detail::default_chunk_name(),
load_mode  mode = load_mode::any 
)
inline

Definition at line 16660 of file sol.hpp.

◆ script() [2/2]

void sol::stack::script ( lua_State L,
lua_Reader  reader,
void *  data,
const std::string &  chunkname = detail::default_chunk_name(),
load_mode  mode = load_mode::any 
)
inline

Definition at line 16651 of file sol.hpp.

◆ script_file()

void sol::stack::script_file ( lua_State L,
const std::string &  filename,
load_mode  mode = load_mode::any 
)
inline

Definition at line 16670 of file sol.hpp.

◆ set_field() [1/2]

template<bool global = false, bool raw = false, typename Key , typename Value >
void sol::stack::set_field ( lua_State L,
Key &&  key,
Value &&  value 
)

Definition at line 12125 of file sol.hpp.

◆ set_field() [2/2]

template<bool global = false, bool raw = false, typename Key , typename Value >
void sol::stack::set_field ( lua_State L,
Key &&  key,
Value &&  value,
int  tableindex 
)

Definition at line 12130 of file sol.hpp.

◆ set_ref()

template<typename T >
int sol::stack::set_ref ( lua_State L,
T &&  arg,
int  tableindex = -2 
)

Definition at line 16560 of file sol.hpp.

◆ top()

int sol::stack::top ( lua_State L)
inline

Definition at line 11684 of file sol.hpp.

◆ unqualified_check() [1/3]

template<typename T , typename Handler >
bool sol::stack::unqualified_check ( lua_State L,
int  index,
Handler &&  handler 
)

Definition at line 11869 of file sol.hpp.

◆ unqualified_check() [2/3]

template<typename T , typename Handler >
bool sol::stack::unqualified_check ( lua_State L,
int  index,
Handler &&  handler,
record tracking 
)

Definition at line 11857 of file sol.hpp.

◆ unqualified_check() [3/3]

template<typename T >
bool sol::stack::unqualified_check ( lua_State L,
int  index = -lua_size<meta::unqualified_t<T>>::value 
)

Definition at line 11875 of file sol.hpp.

◆ unqualified_check_get() [1/3]

template<typename T , typename Handler >
decltype(auto) sol::stack::unqualified_check_get ( lua_State L,
int  index,
Handler &&  handler 
)

Definition at line 11946 of file sol.hpp.

◆ unqualified_check_get() [2/3]

template<typename T , typename Handler >
decltype(auto) sol::stack::unqualified_check_get ( lua_State L,
int  index,
Handler &&  handler,
record tracking 
)

Definition at line 11931 of file sol.hpp.

◆ unqualified_check_get() [3/3]

template<typename T >
decltype(auto) sol::stack::unqualified_check_get ( lua_State L,
int  index = -lua_size<meta::unqualified_t<T>>::value 
)

Definition at line 11952 of file sol.hpp.

◆ unqualified_get() [1/2]

template<typename T >
auto sol::stack::unqualified_get ( lua_State L,
int  index,
record tracking 
) -> decltype(stack_detail::unchecked_unqualified_get<T>(L, index, tracking))

Definition at line 12018 of file sol.hpp.

◆ unqualified_get() [2/2]

template<typename T >
decltype(auto) sol::stack::unqualified_get ( lua_State L,
int  index = -lua_size<meta::unqualified_t<T>>::value 
)

Definition at line 12037 of file sol.hpp.



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