All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TransExprTrait.h
Go to the documentation of this file.
1 //=================================================================================================
33 //=================================================================================================
34 
35 #ifndef _BLAZE_MATH_TRAITS_TRANSEXPRTRAIT_H_
36 #define _BLAZE_MATH_TRAITS_TRANSEXPRTRAIT_H_
37 
38 
39 //*************************************************************************************************
40 // Includes
41 //*************************************************************************************************
42 
57 #include <blaze/util/InvalidType.h>
58 #include <blaze/util/mpl/If.h>
59 #include <blaze/util/mpl/Or.h>
66 
67 
68 namespace blaze {
69 
70 //=================================================================================================
71 //
72 // CLASS DEFINITION
73 //
74 //=================================================================================================
75 
76 //*************************************************************************************************
86 template< typename T > // Type of the transpose operand
88 {
89  private:
90  //**struct Failure******************************************************************************
92  struct Failure { typedef INVALID_TYPE Type; };
94  //**********************************************************************************************
95 
96  //**********************************************************************************************
98  typedef typename If< IsMatrix<T>
99  , typename If< IsDenseMatrix<T>
100  , typename If< IsRowMajorMatrix<T>
103  >::Type
104  , typename If< IsRowMajorMatrix<T>
107  >::Type
108  >::Type
109  , typename If< IsVector<T>
110  , typename If< IsDenseVector<T>
111  , typename If< IsRowVector<T>
114  >::Type
115  , typename If< IsRowVector<T>
118  >::Type
119  >::Type
120  , Failure
121  >::Type
122  >::Type Tmp;
123 
124  typedef typename RemoveReference< typename RemoveCV<T>::Type >::Type Type1;
126  //**********************************************************************************************
127 
128  public:
129  //**********************************************************************************************
131  typedef typename If< Or< IsConst<T>, IsVolatile<T>, IsReference<T> >
132  , TransExprTrait<Type1>, Tmp >::Type::Type Type;
134  //**********************************************************************************************
135 };
136 //*************************************************************************************************
137 
138 } // namespace blaze
139 
140 #endif
Compile time type selection.The If class template selects one of the two given types T2 and T3 depend...
Definition: If.h:112
Compile time check for volatile data types.The IsVolatile type trait tests whether or not the given t...
Definition: IsVolatile.h:94
Header file for the RemoveCV type trait.
Evaluation of the expression type of a sparse vector transpose operation.Via this type trait it is po...
Definition: TSVecTransExprTrait.h:75
Header file for the IsRowVector type trait.
Evaluation of the expression type of a sparse matrix transpose operation.Via this type trait it is po...
Definition: TSMatTransExprTrait.h:75
Header file for the IsVolatile type trait.
Header file for the IsMatrix type trait.
Header file for the DMatTransExprTrait class template.
Header file for the If class template.
Header file for the SMatTransExprTrait class template.
Evaluation of the expression type of a sparse vector transpose operation.Via this type trait it is po...
Definition: SVecTransExprTrait.h:75
Evaluation of the expression type of a dense matrix transpose operation.Via this type trait it is pos...
Definition: DMatTransExprTrait.h:75
Header file for the Or class template.
Header file for the TDMatTransExprTrait class template.
Header file for the TSMatTransExprTrait class template.
Evaluation of the expression type of a dense vector transpose operation.Via this type trait it is pos...
Definition: TDVecTransExprTrait.h:75
Header file for the IsVector type trait.
Header file for the IsDenseMatrix type trait.
Header file for the IsNumeric type trait.
Removal of reference modifiers.The RemoveCV type trait removes any reference modifiers from the given...
Definition: RemoveReference.h:69
Header file for the IsConst type trait.
Utility type for generic codes.
Header file for the DVecTransExprTrait class template.
Header file for the IsReference type trait.
Header file for the RemoveReference type trait.
Header file for the IsDenseVector type trait.
Header file for the SVecTransExprTrait class template.
Evaluation of the return type of a transpose expression.Via this type trait it is possible to evaluat...
Definition: TransExprTrait.h:87
Evaluation of the expression type of a sparse matrix transpose operation.Via this type trait it is po...
Definition: SMatTransExprTrait.h:75
Header file for the IsRowMajorMatrix type trait.
Header file for the TDVecTransExprTrait class template.
Compile time type check.This class tests whether the given template parameter T is a reference type (...
Definition: IsReference.h:94
Header file for the TSVecTransExprTrait class template.
Evaluation of the expression type of a dense matrix transpose operation.Via this type trait it is pos...
Definition: TDMatTransExprTrait.h:75
Evaluation of the expression type of a dense vector transpose operation.Via this type trait it is pos...
Definition: DVecTransExprTrait.h:75