Logo
ApraPipes 1.0
Loading...
Searching...
No Matches
apra::detail Namespace Reference

Classes

struct  has_apply_properties
 
struct  has_apply_properties< T, std::void_t< decltype(T::applyProperties(std::declval< T & >(), std::declval< const std::map< std::string, ScalarPropertyValue > & >(), std::declval< std::vector< std::string > & >()))> >
 
struct  has_dynamic_property_names
 
struct  has_dynamic_property_names< P, std::void_t< decltype(P::dynamicPropertyNames())> >
 
struct  has_get_property
 
struct  has_get_property< P, std::void_t< decltype(std::declval< const P & >().getProperty(std::string{}))> >
 
struct  has_get_set_props
 
struct  has_get_set_props< M, P, std::void_t< decltype(std::declval< M & >().getProps()), decltype(std::declval< M & >().setProps(std::declval< P & >())) > >
 
struct  has_set_property
 
struct  has_set_property< P, std::void_t< decltype(std::declval< P & >().setProperty(std::string{}, ScalarPropertyValue{}))> >
 

Functions

FrameTypeInfo toFrameTypeInfo (const FrameTypeDef &def)
 
std::string joinStrings (const std::vector< std::string > &vec, const std::string &sep=", ")
 
ModuleInfo::PinInfo toPinInfo (const PinDef &pin)
 
std::string imageTypeToString (ImageType type)
 
std::string propTypeToString (PropDef::Type type)
 
std::string memTypeToString (MemType type)
 
std::string mutabilityToString (PropDef::Mutability mut)
 
ModuleInfo::PropInfo toPropInfo (const PropDef &prop)
 
std::string categoryToString (ModuleCategory cat)
 
template<typename T >
auto tryApplyProperties (T &props, const std::map< std::string, ScalarPropertyValue > &propMap, std::vector< std::string > &missing) -> std::enable_if_t< has_apply_properties_v< T >, void >
 

Variables

template<typename M , typename P >
constexpr bool supports_dynamic_props_v
 
template<typename T >
constexpr bool has_apply_properties_v = has_apply_properties<T>::value
 

Function Documentation

◆ categoryToString()

std::string apra::detail::categoryToString ( ModuleCategory cat)
inline
Here is the caller graph for this function:

◆ imageTypeToString()

std::string apra::detail::imageTypeToString ( ImageType type)
inline

◆ joinStrings()

std::string apra::detail::joinStrings ( const std::vector< std::string > & vec,
const std::string & sep = ", " )
inline
Here is the caller graph for this function:

◆ memTypeToString()

std::string apra::detail::memTypeToString ( MemType type)
inline

◆ mutabilityToString()

std::string apra::detail::mutabilityToString ( PropDef::Mutability mut)
inline
Here is the caller graph for this function:

◆ propTypeToString()

std::string apra::detail::propTypeToString ( PropDef::Type type)
inline
Here is the caller graph for this function:

◆ toFrameTypeInfo()

FrameTypeInfo apra::detail::toFrameTypeInfo ( const FrameTypeDef & def)
inline

◆ toPinInfo()

ModuleInfo::PinInfo apra::detail::toPinInfo ( const PinDef & pin)
inline

◆ toPropInfo()

ModuleInfo::PropInfo apra::detail::toPropInfo ( const PropDef & prop)
inline
Here is the call graph for this function:

◆ tryApplyProperties()

template<typename T >
auto apra::detail::tryApplyProperties ( T & props,
const std::map< std::string, ScalarPropertyValue > & propMap,
std::vector< std::string > & missing ) -> std::enable_if_t<has_apply_properties_v<T>, void>
inline
Here is the caller graph for this function:

Variable Documentation

◆ has_apply_properties_v

template<typename T >
bool apra::detail::has_apply_properties_v = has_apply_properties<T>::value
inlineconstexpr

◆ supports_dynamic_props_v

template<typename M , typename P >
bool apra::detail::supports_dynamic_props_v
constexpr
Initial value:
=
has_dynamic_property_names<P>::value &&
has_get_property<P>::value &&
has_set_property<P>::value &&
has_get_set_props<M, P>::value