mc_rtc::gui::details::ArrayInputImpl< GetT, SetT > Struct Template Reference

#include <mc_rtc/gui/ArrayInput.h>

Inheritance diagram for mc_rtc::gui::details::ArrayInputImpl< GetT, SetT >:
Collaboration diagram for mc_rtc::gui::details::ArrayInputImpl< GetT, SetT >:

Public Member Functions

 ArrayInputImpl (const std::string &name, GetT get_fn, SetT set_fn)
 
 ArrayInputImpl (const std::string &name, const std::vector< std::string > &labels, GetT get_fn, SetT set_fn)
 
void write (mc_rtc::MessagePackBuilder &writer)
 
 ArrayInputImpl ()
 
- Public Member Functions inherited from mc_rtc::gui::CommonInputImpl< GetT, SetT >
 CommonInputImpl (const std::string &name, GetT get_fn, SetT set_fn)
 
 CommonInputImpl ()
 
- Public Member Functions inherited from mc_rtc::gui::CallbackElement< DataElement< GetT >, SetT >
bool handleRequest (const mc_rtc::Configuration &data)
 
 CallbackElement (const std::string &name, SetT cb, Args &&... args)
 
 CallbackElement ()
 
- Public Member Functions inherited from mc_rtc::gui::DataElement< GetT >
void write (mc_rtc::MessagePackBuilder &builder)
 
 DataElement (const std::string &name, GetT get_fn)
 
 DataElement ()
 
- Public Member Functions inherited from mc_rtc::gui::Element
const std::string & name () const
 
int id () const
 
void id (int idIn)
 
void write (mc_rtc::MessagePackBuilder &)
 
bool handleRequest (const mc_rtc::Configuration &)
 
 Element ()
 

Static Public Member Functions

static constexpr size_t write_size ()
 
- Static Public Member Functions inherited from mc_rtc::gui::DataElement< GetT >
static constexpr size_t write_size ()
 
- Static Public Member Functions inherited from mc_rtc::gui::Element
static constexpr size_t write_size ()
 

Static Public Attributes

static constexpr auto type = Elements::ArrayInput
 

Additional Inherited Members

- Protected Member Functions inherited from mc_rtc::gui::Element
 Element (const std::string &name)
 
- Protected Attributes inherited from mc_rtc::gui::CallbackElement< DataElement< GetT >, SetT >
SetT cb_
 
- Protected Attributes inherited from mc_rtc::gui::DataElement< GetT >
GetT get_fn_
 
- Protected Attributes inherited from mc_rtc::gui::Element
std::string name_
 
int id_
 

Detailed Description

template<typename GetT, typename SetT>
struct mc_rtc::gui::details::ArrayInputImpl< GetT, SetT >

ArrayInput should display an array (

See also
ArrayLabel) and allow editing
Template Parameters
GetTReturns an array-like object
SetTCalled when the client inputs a new value for the array

Constructor & Destructor Documentation

◆ ArrayInputImpl() [1/3]

template<typename GetT , typename SetT >
mc_rtc::gui::details::ArrayInputImpl< GetT, SetT >::ArrayInputImpl ( const std::string &  name,
GetT  get_fn,
SetT  set_fn 
)
inline

Constructor (no labels)

◆ ArrayInputImpl() [2/3]

template<typename GetT , typename SetT >
mc_rtc::gui::details::ArrayInputImpl< GetT, SetT >::ArrayInputImpl ( const std::string &  name,
const std::vector< std::string > &  labels,
GetT  get_fn,
SetT  set_fn 
)
inline

Constructor with labels per-dimension

◆ ArrayInputImpl() [3/3]

template<typename GetT , typename SetT >
mc_rtc::gui::details::ArrayInputImpl< GetT, SetT >::ArrayInputImpl ( )
inline

Invalid element

Member Function Documentation

◆ write()

template<typename GetT , typename SetT >
void mc_rtc::gui::details::ArrayInputImpl< GetT, SetT >::write ( mc_rtc::MessagePackBuilder writer)
inline

◆ write_size()

template<typename GetT , typename SetT >
static constexpr size_t mc_rtc::gui::details::ArrayInputImpl< GetT, SetT >::write_size ( )
inlinestaticconstexpr

Member Data Documentation

◆ type

template<typename GetT , typename SetT >
constexpr auto mc_rtc::gui::details::ArrayInputImpl< GetT, SetT >::type = Elements::ArrayInput
staticconstexpr

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