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