All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SerialExprTrait.h
Go to the documentation of this file.
1 //=================================================================================================
33 //=================================================================================================
34 
35 #ifndef _BLAZE_MATH_TRAITS_SERIALEXPRTRAIT_H_
36 #define _BLAZE_MATH_TRAITS_SERIALEXPRTRAIT_H_
37 
38 
39 //*************************************************************************************************
40 // Includes
41 //*************************************************************************************************
42 
57 #include <blaze/util/InvalidType.h>
58 #include <blaze/util/mpl/If.h>
64 
65 
66 namespace blaze {
67 
68 //=================================================================================================
69 //
70 // CLASS DEFINITION
71 //
72 //=================================================================================================
73 
74 //*************************************************************************************************
84 template< typename T > // Type of the serial evaluation operand
86 {
87  private:
88  //**struct Failure******************************************************************************
90  struct Failure { typedef INVALID_TYPE Type; };
92  //**********************************************************************************************
93 
94  //**********************************************************************************************
98  //**********************************************************************************************
99 
100  //**********************************************************************************************
102  typedef typename If< IsMatrix<T>
103  , typename If< IsDenseMatrix<T>
104  , typename If< IsRowMajorMatrix<T>
107  >::Type
108  , typename If< IsRowMajorMatrix<T>
111  >::Type
112  >::Type
113  , typename If< IsVector<T>
114  , typename If< IsDenseVector<T>
115  , typename If< IsRowVector<T>
118  >::Type
119  , typename If< IsRowVector<T>
122  >::Type
123  >::Type
124  , Failure
125  >::Type
126  >::Type Tmp;
127 
128  typedef typename RemoveReference< typename RemoveCV<T>::Type >::Type Type1;
130  //**********************************************************************************************
131 
132  public:
133  //**********************************************************************************************
135  typedef typename SelectType< qualified, SerialExprTrait<Type1>, Tmp >::Type::Type Type;
137  //**********************************************************************************************
138 };
139 //*************************************************************************************************
140 
141 } // namespace blaze
142 
143 #endif
Header file for the TDVecSerialExprTrait class template.
Compile time type selection.The If class template selects one of the two given types T2 and T3 depend...
Definition: If.h:112
Header file for the SMatSerialExprTrait class template.
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.
Header file for the IsRowVector type trait.
Evaluation of the expression type of a dense matrix serial evaluation operation.Via this type trait i...
Definition: DMatSerialExprTrait.h:72
Header file for the IsVolatile type trait.
Header file for the TSMatSerialExprTrait class template.
Header file for the IsMatrix type trait.
Compile time type selection.The SelectType class template selects one of the two given types T1 and T...
Definition: SelectType.h:59
Header file for the If class template.
Header file for the DMatSerialExprTrait class template.
Evaluation of the expression type of a sparse matrix serial evaluation operation.Via this type trait ...
Definition: TSMatSerialExprTrait.h:72
Evaluation of the expression type of a dense vector serial evaluation operation.Via this type trait i...
Definition: DVecSerialExprTrait.h:72
Header file for the SVecSerialExprTrait class template.
Evaluation of the expression type of a dense matrix serial evaluation operation.Via this type trait i...
Definition: TDMatSerialExprTrait.h:72
Header file for the IsVector type trait.
Header file for the IsDenseMatrix type trait.
Header file for the TDMatSerialExprTrait class template.
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.
Evaluation of the expression type of a dense vector serial evaluation operation.Via this type trait i...
Definition: TDVecSerialExprTrait.h:72
Utility type for generic codes.
Header file for the TSVecSerialExprTrait class template.
Header file for the IsReference type trait.
Header file for the RemoveReference type trait.
Compile time check for constant data types.The IsConst type trait tests whether or not the given temp...
Definition: IsConst.h:94
Header file for the IsDenseVector type trait.
Header file for the DVecSerialExprTrait class template.
Header file for the IsRowMajorMatrix type trait.
Evaluation of the return type of a serial evaluation expression.Via this type trait it is possible to...
Definition: SerialExprTrait.h:85
Compile time type check.This class tests whether the given template parameter T is a reference type (...
Definition: IsReference.h:94
Evaluation of the expression type of a sparse vector serial evaluation operation.Via this type trait ...
Definition: SVecSerialExprTrait.h:72
Evaluation of the expression type of a sparse matrix serial evaluation operation.Via this type trait ...
Definition: SMatSerialExprTrait.h:72
Evaluation of the expression type of a sparse vector serial evaluation operation.Via this type trait ...
Definition: TSVecSerialExprTrait.h:72