All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
IsMatMatAddExpr.h
Go to the documentation of this file.
1 //=================================================================================================
20 //=================================================================================================
21 
22 #ifndef _BLAZE_MATH_TYPETRAITS_ISMATMATADDEXPR_H_
23 #define _BLAZE_MATH_TYPETRAITS_ISMATMATADDEXPR_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 IsMatMatAddExprHelper
52 {
53  //**********************************************************************************************
54  enum { value = boost::is_base_of<MatMatAddExpr,T>::value && !boost::is_base_of<T,MatMatAddExpr>::value };
55  typedef typename SelectType<value,TrueType,FalseType>::Type Type;
56  //**********************************************************************************************
57 };
59 //*************************************************************************************************
60 
61 
62 //*************************************************************************************************
74 template< typename T >
75 struct IsMatMatAddExpr : public IsMatMatAddExprHelper<T>::Type
76 {
77  public:
78  //**********************************************************************************************
80  enum { value = IsMatMatAddExprHelper<T>::value };
81  typedef typename IsMatMatAddExprHelper<T>::Type Type;
83  //**********************************************************************************************
84 };
85 //*************************************************************************************************
86 
87 } // namespace blaze
88 
89 #endif