mc_rtc::gui::details::CallbackOrValue< T > Struct Template Reference

#include <mc_rtc/gui/Form.h>

Public Member Functions

 CallbackOrValue (T value)
 
void write (mc_rtc::MessagePackBuilder &builder)
 

Public Attributes

callback_or_value
 

Static Public Attributes

static constexpr bool is_callback = std::is_invocable_v<T>
 

Detailed Description

template<typename T>
struct mc_rtc::gui::details::CallbackOrValue< T >

This helper class avoids forming reference to void arguments

Constructor & Destructor Documentation

◆ CallbackOrValue()

template<typename T >
mc_rtc::gui::details::CallbackOrValue< T >::CallbackOrValue ( value)
inline

Member Function Documentation

◆ write()

template<typename T >
void mc_rtc::gui::details::CallbackOrValue< T >::write ( mc_rtc::MessagePackBuilder builder)
inline

Member Data Documentation

◆ callback_or_value

template<typename T >
T mc_rtc::gui::details::CallbackOrValue< T >::callback_or_value

◆ is_callback

template<typename T >
constexpr bool mc_rtc::gui::details::CallbackOrValue< T >::is_callback = std::is_invocable_v<T>
inlinestaticconstexpr

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