Schema.h File Reference
Include dependency graph for Schema.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  mc_rtc::schema::details::MemberPointerWrapper< ptr >
 
struct  mc_rtc::schema::details::Choices< HasChoices >
 
struct  mc_rtc::schema::details::Choices< false >
 
struct  mc_rtc::schema::details::is_schema
 
struct  mc_rtc::schema::details::is_std_vector< T >
 
struct  mc_rtc::schema::details::is_std_vector< std::vector< T, Allocator > >
 
struct  mc_rtc::schema::details::is_std_map< T >
 
struct  mc_rtc::schema::details::is_std_map< std::map< std::string, T > >
 
struct  mc_rtc::schema::details::is_eigen_vector< T >
 
struct  mc_rtc::schema::details::is_eigen_vector< Eigen::Matrix< Scalar, Rows, 1, Options, MaxRows, 1 > >
 
struct  mc_rtc::schema::Operations
 
struct  mc_rtc::schema::details::EmptySchema
 
struct  mc_rtc::Default< T, std::enable_if_t< schema::details::is_schema_v< T > > >
 
struct  mc_rtc::Default< T, std::enable_if_t< schema::details::is_std_vector_v< T > > >
 
struct  mc_rtc::Default< T, typename std::enable_if_t< schema::details::is_std_map_v< T > > >
 

Namespaces

 mc_rtc
 
 mc_rtc::schema
 
 mc_rtc::schema::details
 

Typedefs

using mc_rtc::schema::Choices = details::Choices< true >
 

Enumerations

enum  mc_rtc::schema::ValueFlag { mc_rtc::schema::ValueFlag::None = 0, mc_rtc::schema::ValueFlag::Required = 2 << 0, mc_rtc::schema::ValueFlag::Interactive = 2 << 1, mc_rtc::schema::ValueFlag::All = Required | Interactive }
 

Functions

template<typename T , bool IsRequired, bool IsInteractive, bool HasChoices = false, bool IsStatic = false>
void mc_rtc::schema::details::addValueToForm (const T &value, const std::string &description, const details::Choices< HasChoices > &choices, gui::details::FormElements &form)
 
template<bool IsRequired, bool IsInteractive, bool HasChoices, typename... Args>
void mc_rtc::schema::details::variantToForm (const std::variant< Args... > &, gui::details::FormElements &form, const Choices< HasChoices > &choices)
 
constexpr ValueFlag mc_rtc::schema::operator| (ValueFlag lhs, ValueFlag rhs) noexcept
 
constexpr ValueFlag mc_rtc::schema::operator& (ValueFlag lhs, ValueFlag rhs) noexcept
 
constexpr bool mc_rtc::schema::HasFeature (ValueFlag flag, ValueFlag feature) noexcept
 
template<typename T , ValueFlag Flags = ValueFlag::All, bool HasChoices = false>
const T & mc_rtc::schema::details::get_default (const T &default_, const std::integral_constant< ValueFlag, Flags > &={}, const details::Choices< HasChoices > &choices={})
 

Variables

template<typename T >
constexpr bool mc_rtc::schema::details::is_schema_v = decltype(is_schema::test<T>(nullptr))::value
 
template<typename T >
constexpr bool mc_rtc::schema::details::is_std_vector_v = is_std_vector<T>::value
 
template<typename T >
constexpr bool mc_rtc::schema::details::is_std_vector_schema_v
 
template<typename T >
constexpr bool mc_rtc::schema::details::is_std_map_v = is_std_map<T>::value
 
template<typename T >
constexpr bool mc_rtc::schema::details::is_std_map_schema_v
 
template<typename T >
constexpr bool mc_rtc::schema::details::is_eigen_vector_v = is_eigen_vector<T>::value