DART  6.10.1
dart::common::detail::EmbeddedPropertiesAspect< BaseT, DerivedT, PropertiesDataT, PropertiesT, setEmbeddedProperties, getEmbeddedProperties >::ConvertIfProperties< T > Struct Template Reference

Used to identify constructor arguments that can be used as Properties. More...

#include <EmbeddedAspect.hpp>

Public Types

using type = typename std::conditional< std::is_base_of< PropertiesData, T >::value, PropertiesData, T >::type
 

Detailed Description

template<class BaseT, class DerivedT, typename PropertiesDataT, typename PropertiesT = common::Aspect::MakeProperties<PropertiesDataT>, void(*)(DerivedT *, const PropertiesT &) setEmbeddedProperties = &DefaultSetEmbeddedProperties<DerivedT, PropertiesT>, const PropertiesT &(*)(const DerivedT *) getEmbeddedProperties = &DefaultGetEmbeddedProperties<DerivedT, PropertiesT>>
template<typename T>
struct dart::common::detail::EmbeddedPropertiesAspect< BaseT, DerivedT, PropertiesDataT, PropertiesT, setEmbeddedProperties, getEmbeddedProperties >::ConvertIfProperties< T >

Used to identify constructor arguments that can be used as Properties.

Member Typedef Documentation

◆ type

template<class BaseT , class DerivedT , typename PropertiesDataT , typename PropertiesT = common::Aspect::MakeProperties<PropertiesDataT>, void(*)(DerivedT *, const PropertiesT &) setEmbeddedProperties = &DefaultSetEmbeddedProperties<DerivedT, PropertiesT>, const PropertiesT &(*)(const DerivedT *) getEmbeddedProperties = &DefaultGetEmbeddedProperties<DerivedT, PropertiesT>>
template<typename T >
using dart::common::detail::EmbeddedPropertiesAspect< BaseT, DerivedT, PropertiesDataT, PropertiesT, setEmbeddedProperties, getEmbeddedProperties >::ConvertIfProperties< T >::type = typename std::conditional< std::is_base_of<PropertiesData, T>::value, PropertiesData, T>::type