OpenMiner  0.0.1a
Voxel game engine
Public Types | Public Member Functions | Public Attributes | List of all members
sol::property_wrapper< R, W > Struct Template Reference

#include <sol.hpp>

Public Types

typedef std::integral_constant< bool, !std::is_void< R >::value > can_read
 
typedef std::integral_constant< bool, !std::is_void< W >::value > can_write
 
typedef std::conditional_t< can_read::value, R, no_propRead
 
typedef std::conditional_t< can_write::value, W, no_propWrite
 

Public Member Functions

template<typename Rx , typename Wx >
 property_wrapper (Rx &&r, Wx &&w)
 

Public Attributes

Read read
 
Write write
 

Member Typedef Documentation

§ can_read

template<typename R, typename W>
typedef std::integral_constant<bool, !std::is_void<R>::value> sol::property_wrapper< R, W >::can_read

§ can_write

template<typename R, typename W>
typedef std::integral_constant<bool, !std::is_void<W>::value> sol::property_wrapper< R, W >::can_write

§ Read

template<typename R, typename W>
typedef std::conditional_t<can_read::value, R, no_prop> sol::property_wrapper< R, W >::Read

§ Write

template<typename R, typename W>
typedef std::conditional_t<can_write::value, W, no_prop> sol::property_wrapper< R, W >::Write

Constructor & Destructor Documentation

§ property_wrapper()

template<typename R, typename W>
template<typename Rx , typename Wx >
sol::property_wrapper< R, W >::property_wrapper ( Rx &&  r,
Wx &&  w 
)
inline
12936  : read(std::forward<Rx>(r)), write(std::forward<Wx>(w)) {
12937  }
Read read
Definition: sol.hpp:12931
Write write
Definition: sol.hpp:12932

Member Data Documentation

§ read

template<typename R, typename W>
Read sol::property_wrapper< R, W >::read

§ write

template<typename R, typename W>
Write sol::property_wrapper< R, W >::write

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