Public Member Functions | Static Public Attributes | List of all members
sol::stack::field_setter< T, global, raw, typename > Struct Template Reference

#include <sol.hpp>

Public Member Functions

template<typename Key , typename Value >
void set (lua_State *L, Key &&key, Value &&value, int tableindex=default_table_index)
 

Static Public Attributes

static constexpr int default_table_index = meta::conditional_t<stack_detail::is_set_direct_v<T, global, raw>, std::integral_constant<int, -2>, std::integral_constant<int, -3>>::value
 

Detailed Description

template<typename T, bool global, bool raw, typename>
struct sol::stack::field_setter< T, global, raw, typename >

Definition at line 11436 of file sol.hpp.

Member Function Documentation

◆ set()

template<typename T , bool global, bool raw, typename >
template<typename Key , typename Value >
void sol::stack::field_setter< T, global, raw, typename >::set ( lua_State L,
Key &&  key,
Value &&  value,
int  tableindex = default_table_index 
)
inline

Definition at line 16220 of file sol.hpp.

Member Data Documentation

◆ default_table_index

template<typename T , bool global, bool raw, typename >
constexpr int sol::stack::field_setter< T, global, raw, typename >::default_table_index = meta::conditional_t<stack_detail::is_set_direct_v<T, global, raw>, std::integral_constant<int, -2>, std::integral_constant<int, -3>>::value
staticconstexpr

Definition at line 16217 of file sol.hpp.


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


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