10 #ifndef SACADO_MP_EXPRESSIONTRAITS_HPP
11 #define SACADO_MP_EXPRESSIONTRAITS_HPP
13 #include "Sacado_Traits.hpp"
18 template <
typename T>
class Expr;
26 struct ScalarType< MP::Expr<T> > {
32 struct ValueType< MP::Expr<T> > {
38 struct IsADType< MP::Expr<T> > {
39 static const bool value =
true;
44 struct IsScalarType< MP::Expr<T> > {
45 static const bool value =
false;
50 struct Value< MP::Expr<T> > {
51 typedef typename ValueType< MP::Expr<T> >::type
value_type;
58 struct ScalarValue< MP::Expr<T> > {
59 typedef typename ValueType< MP::Expr<T> >::type
value_type;
62 return ScalarValue<value_type>::eval(x.val()); }
67 #endif // SACADO_MP_EXPRESSIONTRAITS_HPP
MP::Expr< T >::value_type type
ScalarType< typename MP::Expr< T >::value_type >::type type
static const value_type & eval(const MP::Expr< T > &x)
ScalarType< MP::Expr< T > >::type scalar_type
static const scalar_type & eval(const MP::Expr< T > &x)
ValueType< MP::Expr< T > >::type value_type
ValueType< MP::Expr< T > >::type value_type