All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
IsEvalExpr.h
Go to the documentation of this file.
1 //=================================================================================================
20 //=================================================================================================
21 
22 #ifndef _BLAZE_MATH_TYPETRAITS_ISEVALEXPR_H_
23 #define _BLAZE_MATH_TYPETRAITS_ISEVALEXPR_H_
24 
25 
26 //*************************************************************************************************
27 // Includes
28 //*************************************************************************************************
29 
30 #include <boost/type_traits/is_base_of.hpp>
32 #include <blaze/util/FalseType.h>
33 #include <blaze/util/SelectType.h>
34 #include <blaze/util/TrueType.h>
35 
36 
37 namespace blaze {
38 
39 //=================================================================================================
40 //
41 // CLASS DEFINITION
42 //
43 //=================================================================================================
44 
45 //*************************************************************************************************
50 template< typename T >
51 struct IsEvalExprHelper
52 {
53  //**********************************************************************************************
54  enum { value = boost::is_base_of<EvalExpr,T>::value && !boost::is_base_of<T,EvalExpr>::value };
55  typedef typename SelectType<value,TrueType,FalseType>::Type Type;
56  //**********************************************************************************************
57 };
59 //*************************************************************************************************
60 
61 
62 //*************************************************************************************************
73 template< typename T >
74 struct IsEvalExpr : public IsEvalExprHelper<T>::Type
75 {
76  public:
77  //**********************************************************************************************
79  enum { value = IsEvalExprHelper<T>::value };
80  typedef typename IsEvalExprHelper<T>::Type Type;
82  //**********************************************************************************************
83 };
84 //*************************************************************************************************
85 
86 } // namespace blaze
87 
88 #endif