All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RowTrait.h
Go to the documentation of this file.
1 //=================================================================================================
33 //=================================================================================================
34 
35 #ifndef _BLAZE_MATH_TRAITS_ROWTRAIT_H_
36 #define _BLAZE_MATH_TRAITS_ROWTRAIT_H_
37 
38 
39 //*************************************************************************************************
40 // Includes
41 //*************************************************************************************************
42 
43 #include <blaze/util/InvalidType.h>
44 #include <blaze/util/SelectType.h>
50 
51 
52 namespace blaze {
53 
54 //=================================================================================================
55 //
56 // CLASS DEFINITION
57 //
58 //=================================================================================================
59 
60 //*************************************************************************************************
113 template< typename MT > // Type of the matrix
114 struct RowTrait
115 {
116  private:
117  //**********************************************************************************************
119  struct Failure { typedef INVALID_TYPE Type; };
121  //**********************************************************************************************
122 
123  //**********************************************************************************************
127  //**********************************************************************************************
128 
129  //**********************************************************************************************
131  typedef typename RemoveReference< typename RemoveCV<MT>::Type >::Type Tmp;
133  //**********************************************************************************************
134 
135  public:
136  //**********************************************************************************************
138  typedef typename SelectType< qualified, RowTrait<Tmp>, Failure >::Type::Type Type;
140  //**********************************************************************************************
141 };
142 //*************************************************************************************************
143 
144 } // namespace blaze
145 
146 #endif
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 IsVolatile type trait.
Base template for the RowTrait class.
Definition: RowTrait.h:114
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 SelectType 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.
Utility type for generic codes.
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
Compile time type check.This class tests whether the given template parameter T is a reference type (...
Definition: IsReference.h:94