StorageOrder.h
Go to the documentation of this file.
1 //=================================================================================================
33 //=================================================================================================
34 
35 #ifndef _BLAZE_MATH_TYPETRAITS_STORAGEORDER_H_
36 #define _BLAZE_MATH_TYPETRAITS_STORAGEORDER_H_
37 
38 
39 //*************************************************************************************************
40 // Includes
41 //*************************************************************************************************
42 
46 #include <blaze/util/InvalidType.h>
47 #include <blaze/util/mpl/If.h>
48 
49 
50 namespace blaze {
51 
52 //=================================================================================================
53 //
54 // CLASS DEFINITION
55 //
56 //=================================================================================================
57 
58 //*************************************************************************************************
76 template< typename T >
78 {
79  private:
80  //**struct ValidType****************************************************************************
82  struct ValidType {
83  static const bool value = ( IsRowMajorMatrix<T>::value ? rowMajor : columnMajor );
84  };
86  //**********************************************************************************************
87 
88  public:
89  //**********************************************************************************************
91  static const bool value = If< IsMatrix<T>, ValidType, INVALID_TYPE >::Type::value;
93  //**********************************************************************************************
94 };
95 //*************************************************************************************************
96 
97 } // namespace blaze
98 
99 #endif
Compile time type selection.The If class template selects one of the two given types T2 and T3 depend...
Definition: If.h:112
const bool columnMajor
Storage order flag for column-major matrices.
Definition: StorageOrder.h:99
Header file for the IsMatrix type trait.
Header file for the matrix storage order types.
Namespace of the Blaze C++ math library.
Definition: Blaze.h:57
Header file for the If class template.
Compile time check for row-major matrix types.This type trait tests whether or not the given template...
Definition: IsRowMajorMatrix.h:110
Utility type for generic codes.
Evaluation of the storage order of a given matrix type.Via this type trait it is possible to evaluate...
Definition: StorageOrder.h:77
Header file for the IsRowMajorMatrix type trait.
const bool rowMajor
Storage order flag for row-major matrices.
Definition: StorageOrder.h:71