From: Peter Munch Date: Sat, 12 Feb 2022 05:57:43 +0000 (+0100) Subject: Implement new Table<3, T>::reinit() X-Git-Tag: v9.4.0-rc1~501^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=08912e4499716e48781481e4d1cd06289e70c621;p=dealii.git Implement new Table<3, T>::reinit() --- diff --git a/include/deal.II/base/table.h b/include/deal.II/base/table.h index 286304f4f3..2c48b74e93 100644 --- a/include/deal.II/base/table.h +++ b/include/deal.II/base/table.h @@ -1549,6 +1549,18 @@ public: InputIterator entries, const bool C_style_indexing = true); + /** + * Reinitialize the object. Passes down to the base class + * by converting the arguments to the data type requested by the base class. + */ + void + reinit(const size_type size1, + const size_type size2, + const size_type size3, + const bool omit_default_initialization = false); + + using TableBase<3, T>::reinit; + /** * Access operator. Generate an object that accesses the requested two- * dimensional subobject of this three-dimensional table. Range checks are @@ -3238,6 +3250,19 @@ inline Table<3, T>::Table(const size_type size1, +template +inline void +Table<3, T>::reinit(const size_type size1, + const size_type size2, + const size_type size3, + const bool omit_default_initialization) +{ + this->TableBase<3, T>::reinit(TableIndices<3>(size1, size2, size3), + omit_default_initialization); +} + + + template inline dealii::internal::TableBaseAccessors::Accessor<3, T, true, 2> Table<3, T>::operator[](const size_type i) const