Typedefs | |
template<typename... > | |
using | void_t = void |
template<typename GetT > | |
using | ReturnTypeT = typename ReturnType< GetT >::type |
Functions | |
template<typename GetT > | |
constexpr bool | is_getter_impl (void_t< decltype(std::declval< GetT >()())> *) |
template<typename GetT > | |
constexpr bool | is_getter_impl (...) |
template<typename GetT > | |
constexpr bool | is_getter () |
template<typename T > | |
auto | read (const T &&value) |
template<bool Degrees, typename T > | |
auto | read_rpy (const T &&value) |
template<typename T > | |
auto | read (const T &value) |
template<bool Degrees, typename T > | |
auto | read_rpy (const T &value) |
template<typename T > | |
auto | write (T &value) |
template<typename T > | |
auto | GetValueOrCallbackValue (const T &value_or_cb) |
Variables | |
template<typename CallbackT , typename FunT > | |
constexpr bool | has_compatible_signature_v = std::is_convertible_v<CallbackT, std::function<FunT>> |
template<typename T > | |
constexpr bool | is_variant_v = is_variant<T>::value |
template<typename T > | |
constexpr bool | is_form_element_v = decltype(is_form_element::test<T>(nullptr))::value |
This file contains some utility template metaprogramming functions for the GUI
using mc_rtc::gui::details::ReturnTypeT = typedef typename ReturnType<GetT>::type |
Helper
using mc_rtc::gui::details::void_t = typedef void |
Same as std::void_t
auto mc_rtc::gui::details::GetValueOrCallbackValue | ( | const T & | value_or_cb | ) |
If
T | is callable returns value_or_cb() otherwise return value_or_cb |
|
constexpr |
This traits is true if:
GetT | is a nullary functor |
GetT | functor returns a non-void value |
|
constexpr |
|
constexpr |
Helper for is_getter
auto mc_rtc::gui::details::read | ( | const T && | value | ) |
Wrap a temporary value into a callback
auto mc_rtc::gui::details::read | ( | const T & | value | ) |
Wrap a variable into a callback
auto mc_rtc::gui::details::read_rpy | ( | const T && | value | ) |
Read RPY angles from a value
auto mc_rtc::gui::details::read_rpy | ( | const T & | value | ) |
Read RPY angles from a variable
auto mc_rtc::gui::details::write | ( | T & | value | ) |
Make a setter callback for a variable
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |