DeclLowExprTrait.h
Go to the documentation of this file.
1 //=================================================================================================
33 //=================================================================================================
34 
35 #ifndef _BLAZE_MATH_TRAITS_DECLLOWEXPRTRAIT_H_
36 #define _BLAZE_MATH_TRAITS_DECLLOWEXPRTRAIT_H_
37 
38 
39 //*************************************************************************************************
40 // Includes
41 //*************************************************************************************************
42 
50 #include <blaze/util/InvalidType.h>
51 #include <blaze/util/mpl/If.h>
52 #include <blaze/util/mpl/Or.h>
57 
58 
59 namespace blaze {
60 
61 //=================================================================================================
62 //
63 // CLASS DEFINITION
64 //
65 //=================================================================================================
66 
67 //*************************************************************************************************
77 template< typename T > // Type of the decllow operand
79 {
80  private:
81  //**struct Failure******************************************************************************
83  struct Failure { using Type = INVALID_TYPE; };
85  //**********************************************************************************************
86 
87  //**********************************************************************************************
89  using Tmp = If_< IsMatrix<T>
94  , If_< IsRowMajorMatrix<T>
97  , Failure >;
99  //**********************************************************************************************
100 
101  public:
102  //**********************************************************************************************
104  using Type = typename If_< Or< IsConst<T>, IsVolatile<T>, IsReference<T> >
106  , Tmp >::Type;
108  //**********************************************************************************************
109 };
110 //*************************************************************************************************
111 
112 
113 //*************************************************************************************************
126 template< typename T > // Type of the decllow operand
128 //*************************************************************************************************
129 
130 } // namespace blaze
131 
132 #endif
Evaluation of the expression type of a dense matrix decllow operation.Via this type trait it is possi...
Definition: TDMatDeclLowExprTrait.h:75
Compile time check for volatile data types.The IsVolatile type trait tests whether or not the given t...
Definition: IsVolatile.h:75
Header file for the IsVolatile type trait.
Header file for the IsMatrix type trait.
Header file for the Decay type trait.
Namespace of the Blaze C++ math library.
Definition: Blaze.h:57
Header file for the If class template.
Header file for the Or class template.
Header file for the DMatDeclLowExprTrait class template.
Header file for the SMatDeclLowExprTrait class template.
Header file for the IsDenseMatrix type trait.
Header file for the IsConst type trait.
Utility type for generic codes.
Header file for the TDMatDeclLowExprTrait class template.
typename If< T1, T2, T3 >::Type If_
Auxiliary alias declaration for the If class template.The If_ alias declaration provides a convenient...
Definition: If.h:160
Header file for the TSMatDeclLowExprTrait class template.
Header file for the IsReference type trait.
Evaluation of the expression type of a sparse matrix decllow operation.Via this type trait it is poss...
Definition: SMatDeclLowExprTrait.h:75
Header file for the IsRowMajorMatrix type trait.
typename DeclLowExprTrait< T >::Type DeclLowExprTrait_
Auxiliary alias declaration for the DeclLowExprTrait class template.The DeclLowExprTrait_ alias decla...
Definition: DeclLowExprTrait.h:127
Evaluation of the expression type of a dense matrix decllow operation.Via this type trait it is possi...
Definition: DMatDeclLowExprTrait.h:75
Compile time type check.This class tests whether the given template parameter T is a reference type (...
Definition: IsReference.h:75
Evaluation of the return type of a lower declaration (decllow) expression.Via this type trait it is p...
Definition: DeclLowExprTrait.h:78
Evaluation of the expression type of a sparse matrix decllow operation.Via this type trait it is poss...
Definition: TSMatDeclLowExprTrait.h:75