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>
59 #include <blaze/util/mpl/Or.h>
65 
66 
67 namespace blaze {
68 
69 //=================================================================================================
70 //
71 // CLASS DEFINITION
72 //
73 //=================================================================================================
74 
75 //*************************************************************************************************
85 template< typename T > // Type of the serial evaluation operand
87 {
88  private:
89  //**struct Failure******************************************************************************
91  struct Failure { typedef INVALID_TYPE Type; };
93  //**********************************************************************************************
94 
95  //**********************************************************************************************
97  typedef typename If< IsMatrix<T>
98  , typename If< IsDenseMatrix<T>
99  , typename If< IsRowMajorMatrix<T>
102  >::Type
103  , typename If< IsRowMajorMatrix<T>
106  >::Type
107  >::Type
108  , typename If< IsVector<T>
109  , typename If< IsDenseVector<T>
110  , typename If< IsRowVector<T>
113  >::Type
114  , typename If< IsRowVector<T>
117  >::Type
118  >::Type
119  , Failure
120  >::Type
121  >::Type Tmp;
122 
123  typedef typename RemoveReference< typename RemoveCV<T>::Type >::Type Type1;
125  //**********************************************************************************************
126 
127  public:
128  //**********************************************************************************************
130  typedef typename If< Or< IsConst<T>, IsVolatile<T>, IsReference<T> >
131  , SerialExprTrait<Type1>, Tmp >::Type::Type Type;
133  //**********************************************************************************************
134 };
135 //*************************************************************************************************
136 
137 } // namespace blaze
138 
139 #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:75
Header file for the IsVolatile type trait.
Header file for the TSMatSerialExprTrait class template.
Header file for the IsMatrix type trait.
Namespace of the Blaze C++ math library.
Definition: Blaze.h:57
Header file for the If class template.
Header file for the DMatSerialExprTrait class template.
Header file for the Or class template.
Evaluation of the expression type of a sparse matrix serial evaluation operation.Via this type trait ...
Definition: TSMatSerialExprTrait.h:75
Evaluation of the expression type of a dense vector serial evaluation operation.Via this type trait i...
Definition: DVecSerialExprTrait.h:75
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:75
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:75
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.
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:86
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:75
Evaluation of the expression type of a sparse matrix serial evaluation operation.Via this type trait ...
Definition: SMatSerialExprTrait.h:75
Evaluation of the expression type of a sparse vector serial evaluation operation.Via this type trait ...
Definition: TSVecSerialExprTrait.h:75