diff --git a/src/TNL/Containers/Array.h b/src/TNL/Containers/Array.h index 27b709671d90ede184a9617f119edaacca10995f..7f4d898e9a4fe4e620331090a57baa3240804bb0 100644 --- a/src/TNL/Containers/Array.h +++ b/src/TNL/Containers/Array.h @@ -298,9 +298,9 @@ class Array /** * \brief Returns a modifiable view of the array. * - * If \e begin or \e end is set to a non-zero value, a view for the - * sub-interval `[begin, end)` is returned. Otherwise a view for whole - * array is returned. + * By default, a view for the whole array is returned. If \e begin or + * \e end is set to a non-zero value, a view only for the sub-interval + * `[begin, end)` is returned. * * \param begin The beginning of the array sub-interval. It is 0 by * default. @@ -312,9 +312,9 @@ class Array /** * \brief Returns a non-modifiable view of the array. * - * If \e begin or \e end is set to a non-zero value, a view for the - * sub-interval `[begin, end)` is returned. Otherwise a view for whole - * array is returned. + * By default, a view for the whole array is returned. If \e begin or + * \e end is set to a non-zero value, a view only for the sub-interval + * `[begin, end)` is returned. * * \param begin The beginning of the array sub-interval. It is 0 by * default. @@ -326,9 +326,9 @@ class Array /** * \brief Returns a non-modifiable view of the array. * - * If \e begin or \e end is set to a non-zero value, a view for the - * sub-interval `[begin, end)` is returned. Otherwise a view for whole - * array is returned. + * By default, a view for the whole array is returned. If \e begin or + * \e end is set to a non-zero value, a view only for the sub-interval + * `[begin, end)` is returned. * * \param begin The beginning of the array sub-interval. It is 0 by * default. diff --git a/src/TNL/Containers/ArrayView.h b/src/TNL/Containers/ArrayView.h index 5361b879924503914623b427aec14303f1b61232..3584efd217a2463e8dd5e622ecc82ebb032edaac 100644 --- a/src/TNL/Containers/ArrayView.h +++ b/src/TNL/Containers/ArrayView.h @@ -157,9 +157,9 @@ public: /** * \brief Returns a modifiable view of the array view. * - * If \e begin or \e end is set to a non-zero value, a view for the - * sub-interval `[begin, end)` is returned. Otherwise a view for whole - * array view is returned. + * By default, a view for the whole array is returned. If \e begin or + * \e end is set to a non-zero value, a view only for the sub-interval + * `[begin, end)` is returned. * * \param begin The beginning of the array view sub-interval. It is 0 by * default. @@ -172,9 +172,9 @@ public: /** * \brief Returns a non-modifiable view of the array view. * - * If \e begin or \e end is set to a non-zero value, a view for the - * sub-interval `[begin, end)` is returned. Otherwise a view for whole - * array view is returned. + * By default, a view for the whole array is returned. If \e begin or + * \e end is set to a non-zero value, a view only for the sub-interval + * `[begin, end)` is returned. * * \param begin The beginning of the array view sub-interval. It is 0 by * default. @@ -183,13 +183,13 @@ public: */ __cuda_callable__ ConstViewType getView( const IndexType begin = 0, IndexType end = 0 ) const; - + /** * \brief Returns a non-modifiable view of the array view. * - * If \e begin or \e end is set to a non-zero value, a view for the - * sub-interval `[begin, end)` is returned. Otherwise a view for whole - * array view is returned. + * By default, a view for the whole array is returned. If \e begin or + * \e end is set to a non-zero value, a view only for the sub-interval + * `[begin, end)` is returned. * * \param begin The beginning of the array view sub-interval. It is 0 by * default. diff --git a/src/TNL/Containers/Vector.h b/src/TNL/Containers/Vector.h index f5b40e4ba4ffc15c111ac5ab65da3a994faedddd..e25098a58b26c2e6d6abaa735c4e43ef0bca8739 100644 --- a/src/TNL/Containers/Vector.h +++ b/src/TNL/Containers/Vector.h @@ -78,9 +78,9 @@ public: /** * \brief Returns a modifiable view of the vector. * - * If \e begin or \e end is set to a non-zero value, a view for the - * sub-interval `[begin, end)` is returned. Otherwise a view for whole - * vector is returned. + * By default, a view for the whole vector is returned. If \e begin or + * \e end is set to a non-zero value, a view only for the sub-interval + * `[begin, end)` is returned. * * \param begin The beginning of the vector sub-interval. It is 0 by * default. @@ -92,9 +92,9 @@ public: /** * \brief Returns a non-modifiable view of the vector. * - * If \e begin or \e end is set to a non-zero value, a view for the - * sub-interval `[begin, end)` is returned. Otherwise a view for whole - * vector is returned. + * By default, a view for the whole vector is returned. If \e begin or + * \e end is set to a non-zero value, a view only for the sub-interval + * `[begin, end)` is returned. * * \param begin The beginning of the vector sub-interval. It is 0 by * default. @@ -106,9 +106,9 @@ public: /** * \brief Returns a non-modifiable view of the vector. * - * If \e begin or \e end is set to a non-zero value, a view for the - * sub-interval `[begin, end)` is returned. Otherwise a view for whole - * vector is returned. + * By default, a view for the whole vector is returned. If \e begin or + * \e end is set to a non-zero value, a view only for the sub-interval + * `[begin, end)` is returned. * * \param begin The beginning of the vector sub-interval. It is 0 by * default. diff --git a/src/TNL/Containers/VectorView.h b/src/TNL/Containers/VectorView.h index bff31973dc4faf4f67a9dd238cf51f2da540f24f..81f6f50757ca99811e43105a5be17ee5a32c1dc3 100644 --- a/src/TNL/Containers/VectorView.h +++ b/src/TNL/Containers/VectorView.h @@ -69,9 +69,9 @@ public: /** * \brief Returns a modifiable view of the vector view. * - * If \e begin or \e end is set to a non-zero value, a view for the - * sub-interval `[begin, end)` is returned. Otherwise a view for whole - * vector view is returned. + * By default, a view for the whole vector is returned. If \e begin or + * \e end is set to a non-zero value, a view only for the sub-interval + * `[begin, end)` is returned. * * \param begin The beginning of the vector view sub-interval. It is 0 by * default. @@ -84,9 +84,9 @@ public: /** * \brief Returns a non-modifiable view of the vector view. * - * If \e begin or \e end is set to a non-zero value, a view for the - * sub-interval `[begin, end)` is returned. Otherwise a view for whole - * vector view is returned. + * By default, a view for the whole vector is returned. If \e begin or + * \e end is set to a non-zero value, a view only for the sub-interval + * `[begin, end)` is returned. * * \param begin The beginning of the vector view sub-interval. It is 0 by * default. @@ -99,9 +99,9 @@ public: /** * \brief Returns a non-modifiable view of the vector view. * - * If \e begin or \e end is set to a non-zero value, a view for the - * sub-interval `[begin, end)` is returned. Otherwise a view for whole - * vector view is returned. + * By default, a view for the whole vector is returned. If \e begin or + * \e end is set to a non-zero value, a view only for the sub-interval + * `[begin, end)` is returned. * * \param begin The beginning of the vector view sub-interval. It is 0 by * default. diff --git a/src/TNL/TypeTraits.h b/src/TNL/TypeTraits.h index d7a1a4f12791bbecda6368f9ac341f41a2327dbf..c251dca0180e5bddd0e083108f13b50e4ceb8383 100644 --- a/src/TNL/TypeTraits.h +++ b/src/TNL/TypeTraits.h @@ -13,6 +13,7 @@ namespace TNL { +// TODO: remove - not used anywhere template< typename T > struct ViewTypeGetter {