All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
EvalExprTrait.h
Go to the documentation of this file.
1 //=================================================================================================
33 //=================================================================================================
34 
35 #ifndef _BLAZE_MATH_TRAITS_EVALEXPRTRAIT_H_
36 #define _BLAZE_MATH_TRAITS_EVALEXPRTRAIT_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 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, EvalExprTrait<Type1>, Tmp >::Type::Type Type;
137  //**********************************************************************************************
138 };
139 //*************************************************************************************************
140 
141 } // namespace blaze
142 
143 #endif
Compile time type selection.The If class template selects one of the two given types T2 and T3 depend...
Definition: If.h:112
Evaluation of the expression type of a sparse matrix evaluation operation.Via this type trait it is p...
Definition: SMatEvalExprTrait.h:72
Header file for the DMatEvalExprTrait class template.
Evaluation of the expression type of a sparse matrix evaluation operation.Via this type trait it is p...
Definition: TSMatEvalExprTrait.h:72
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 TSMatEvalExprTrait class template.
Header file for the IsRowVector type trait.
Header file for the IsVolatile type trait.
Evaluation of the expression type of a sparse vector evaluation operation.Via this type trait it is p...
Definition: TSVecEvalExprTrait.h:72
Header file for the IsMatrix type trait.
Header file for the SMatEvalExprTrait class template.
Compile time type selection.The SelectType class template selects one of the two given types T1 and T...
Definition: SelectType.h:59
Evaluation of the expression type of a dense matrix evaluation operation.Via this type trait it is po...
Definition: DMatEvalExprTrait.h:72
Header file for the If class template.
Header file for the TDVecEvalExprTrait class template.
Header file for the IsVector type trait.
Header file for the IsDenseMatrix type trait.
Evaluation of the expression type of a dense vector evaluation operation.Via this type trait it is po...
Definition: DVecEvalExprTrait.h:72
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 DVecEvalExprTrait class template.
Evaluation of the expression type of a dense matrix evaluation operation.Via this type trait it is po...
Definition: TDMatEvalExprTrait.h:72
Evaluation of the expression type of a dense vector evaluation operation.Via this type trait it is po...
Definition: TDVecEvalExprTrait.h:72
Header file for the TSVecEvalExprTrait class template.
Evaluation of the expression type of a sparse vector evaluation operation.Via this type trait it is p...
Definition: SVecEvalExprTrait.h:72
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 IsRowMajorMatrix type trait.
Header file for the TDMatEvalExprTrait class template.
Compile time type check.This class tests whether the given template parameter T is a reference type (...
Definition: IsReference.h:94
Evaluation of the return type of an evaluation expression.Via this type trait it is possible to evalu...
Definition: EvalExprTrait.h:85
Header file for the SVecEvalExprTrait class template.