ColumnTrait.h
Go to the documentation of this file.
1 //=================================================================================================
33 //=================================================================================================
34 
35 #ifndef _BLAZE_MATH_TRAITS_COLUMNTRAIT_H_
36 #define _BLAZE_MATH_TRAITS_COLUMNTRAIT_H_
37 
38 
39 //*************************************************************************************************
40 // Includes
41 //*************************************************************************************************
42 
43 #include <blaze/util/InvalidType.h>
44 #include <blaze/util/mpl/If.h>
45 #include <blaze/util/mpl/Or.h>
50 
51 
52 namespace blaze {
53 
54 //=================================================================================================
55 //
56 // CLASS DEFINITION
57 //
58 //=================================================================================================
59 
60 //*************************************************************************************************
106 template< typename MT // Type of the matrix
107  , size_t... CCAs > // Compile time column arguments
109 {
110  private:
111  //**********************************************************************************************
113  struct Failure { using Type = INVALID_TYPE; };
115  //**********************************************************************************************
116 
117  public:
118  //**********************************************************************************************
120  using Type = typename If_< Or< IsConst<MT>, IsVolatile<MT>, IsReference<MT> >
121  , ColumnTrait< Decay_<MT>, CCAs... >
122  , Failure >::Type;
124  //**********************************************************************************************
125 };
126 //*************************************************************************************************
127 
128 
129 //*************************************************************************************************
142 template< typename MT // Type of the matrix
143  , size_t... CCAs > // Compile time column arguments
144 using ColumnTrait_ = typename ColumnTrait<MT,CCAs...>::Type;
145 //*************************************************************************************************
146 
147 } // namespace blaze
148 
149 #endif
Compile time check for volatile data types.The IsVolatile type trait tests whether or not the given t...
Definition: IsVolatile.h:75
Base template for the ColumnTrait class.
Definition: ColumnTrait.h:108
Header file for the IsVolatile type trait.
Header file for the Decay type trait.
typename ColumnTrait< MT, CCAs... >::Type ColumnTrait_
Auxiliary alias declaration for the ColumnTrait type trait.The ColumnTrait_ alias declaration provide...
Definition: ColumnTrait.h:144
Namespace of the Blaze C++ math library.
Definition: Blaze.h:58
Header file for the If class template.
Header file for the Or class template.
Header file for the IsConst type trait.
Utility type for generic codes.
typename If< T1, T2, T3 >::Type If_
Auxiliary alias declaration for the If class template.The If_ alias declaration provides a convenient...
Definition: If.h:154
Header file for the IsReference type trait.
Compile time type check.This class tests whether the given template parameter T is a reference type (...
Definition: IsReference.h:75