5 #ifndef __pinocchio_utils_static_if_hpp__ 6 #define __pinocchio_utils_static_if_hpp__ 8 #include "pinocchio/fwd.hpp" 17 template<
typename LhsType,
typename RhsType,
typename ThenType,
typename ElseType>
21 template<
typename LhsType,
typename RhsType,
typename return_type>
27 template<
typename condition_type,
typename ThenType,
typename ElseType>
33 const condition_type & lhs_value,
34 const condition_type & rhs_value,
35 const ThenType & then_value,
36 const ElseType & else_value)
41 if(lhs_value < rhs_value)
47 if(lhs_value <= rhs_value)
53 if(lhs_value == rhs_value)
59 if(lhs_value >= rhs_value)
65 if(lhs_value > rhs_value)
75 template<
typename LhsType,
typename RhsType,
typename ThenType,
typename ElseType>
78 const LhsType & lhs_value,
79 const RhsType & rhs_value,
80 const ThenType & then_value,
81 const ElseType & else_value)
internal::traits< if_then_else_impl >::ReturnType ReturnType
Main pinocchio namespace.
static ReturnType run(const ComparisonOperators op, const condition_type &lhs_value, const condition_type &rhs_value, const ThenType &then_value, const ElseType &else_value)
if_then_else_impl< LhsType, RhsType, ThenType, ElseType >::ReturnType if_then_else(const ComparisonOperators op, const LhsType &lhs_value, const RhsType &rhs_value, const ThenType &then_value, const ElseType &else_value)