IsSubvector.h
Go to the documentation of this file.
1 //=================================================================================================
33 //=================================================================================================
34 
35 #ifndef _BLAZE_MATH_TYPETRAITS_ISSUBVECTOR_H_
36 #define _BLAZE_MATH_TYPETRAITS_ISSUBVECTOR_H_
37 
38 
39 //*************************************************************************************************
40 // Includes
41 //*************************************************************************************************
42 
44 #include <blaze/util/FalseType.h>
45 #include <blaze/util/TrueType.h>
46 
47 
48 namespace blaze {
49 
50 //=================================================================================================
51 //
52 // CLASS DEFINITION
53 //
54 //=================================================================================================
55 
56 //*************************************************************************************************
84 template< typename T >
85 struct IsSubvector : public FalseType
86 {};
87 //*************************************************************************************************
88 
89 
90 //*************************************************************************************************
95 template< typename VT, bool AF, bool TF, bool DF >
96 struct IsSubvector< Subvector<VT,AF,TF,DF> > : public TrueType
97 {};
99 //*************************************************************************************************
100 
101 
102 //*************************************************************************************************
107 template< typename VT, bool AF, bool TF, bool DF >
108 struct IsSubvector< const Subvector<VT,AF,TF,DF> > : public TrueType
109 {};
111 //*************************************************************************************************
112 
113 
114 //*************************************************************************************************
119 template< typename VT, bool AF, bool TF, bool DF >
120 struct IsSubvector< volatile Subvector<VT,AF,TF,DF> > : public TrueType
121 {};
123 //*************************************************************************************************
124 
125 
126 //*************************************************************************************************
131 template< typename VT, bool AF, bool TF, bool DF >
132 struct IsSubvector< const volatile Subvector<VT,AF,TF,DF> > : public TrueType
133 {};
135 //*************************************************************************************************
136 
137 } // namespace blaze
138 
139 #endif
View on a specific subvector of a dense or sparse vector.The Subvector class template represents a vi...
Definition: Forward.h:50
Header file for the FalseType type/value trait base class.
Generic wrapper for a compile time constant integral value.The IntegralConstant class template repres...
Definition: IntegralConstant.h:71
BoolConstant< true > TrueType
Type traits base class.The TrueType class is used as base class for type traits and value traits that...
Definition: TrueType.h:61
Namespace of the Blaze C++ math library.
Definition: Blaze.h:57
Header file for all forward declarations for views.
Compile time check for subvectors.This type trait tests whether or not the given template parameter i...
Definition: IsSubvector.h:85
Header file for the TrueType type/value trait base class.