DeclUppExprTrait.h
Go to the documentation of this file.
1 //=================================================================================================
33 //=================================================================================================
34 
35 #ifndef _BLAZE_MATH_TRAITS_DECLUPPEXPRTRAIT_H_
36 #define _BLAZE_MATH_TRAITS_DECLUPPEXPRTRAIT_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 declupp 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 declupp operand
128 //*************************************************************************************************
129 
130 } // namespace blaze
131 
132 #endif
Evaluation of the expression type of a dense matrix declupp operation.Via this type trait it is possi...
Definition: DMatDeclUppExprTrait.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.
Evaluation of the expression type of a sparse matrix declupp operation.Via this type trait it is poss...
Definition: TSMatDeclUppExprTrait.h:75
Namespace of the Blaze C++ math library.
Definition: Blaze.h:57
Header file for the If class template.
Evaluation of the expression type of a dense matrix declupp operation.Via this type trait it is possi...
Definition: TDMatDeclUppExprTrait.h:75
Header file for the Or class template.
Header file for the TDMatDeclUppExprTrait class template.
Header file for the TSMatDeclUppExprTrait class template.
Header file for the DMatDeclUppExprTrait class template.
Header file for the IsDenseMatrix type trait.
Header file for the SMatDeclUppExprTrait class template.
typename DeclUppExprTrait< T >::Type DeclUppExprTrait_
Auxiliary alias declaration for the DeclUppExprTrait class template.The DeclUppExprTrait_ alias decla...
Definition: DeclUppExprTrait.h:127
Header file for the IsConst type trait.
Utility type for generic codes.
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 IsReference type trait.
Evaluation of the return type of a upper declaration (declupp) expression.Via this type trait it is p...
Definition: DeclUppExprTrait.h:78
Header file for the IsRowMajorMatrix type trait.
Compile time type check.This class tests whether the given template parameter T is a reference type (...
Definition: IsReference.h:75
Evaluation of the expression type of a sparse matrix declupp operation.Via this type trait it is poss...
Definition: SMatDeclUppExprTrait.h:75