All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
IsMatrix.h
Go to the documentation of this file.
1 //=================================================================================================
20 //=================================================================================================
21 
22 #ifndef _BLAZE_MATH_TYPETRAITS_ISMATRIX_H_
23 #define _BLAZE_MATH_TYPETRAITS_ISMATRIX_H_
24 
25 
26 //*************************************************************************************************
27 // Includes
28 //*************************************************************************************************
29 
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 IsMatrixHelper
52 {
53  //**********************************************************************************************
54  enum { value = IsDenseMatrix<T>::value || IsSparseMatrix<T>::value };
55  typedef typename SelectType<value,TrueType,FalseType>::Type Type;
56  //**********************************************************************************************
57 };
59 //*************************************************************************************************
60 
61 
62 //*************************************************************************************************
81 template< typename T >
82 struct IsMatrix : public IsMatrixHelper<T>::Type
83 {
84  public:
85  //**********************************************************************************************
87  enum { value = IsMatrixHelper<T>::value };
88  typedef typename IsMatrixHelper<T>::Type Type;
90  //**********************************************************************************************
91 };
92 //*************************************************************************************************
93 
94 } // namespace blaze
95 
96 #endif