From: Daniel Arndt Date: Sun, 5 Jul 2020 16:18:57 +0000 (-0400) Subject: Remove deprecated TransposeTableIterators X-Git-Tag: v9.3.0-rc1~1336^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=daa3bb19077f407990ea011c108a6bce88ec3a48;p=dealii.git Remove deprecated TransposeTableIterators --- diff --git a/include/deal.II/base/table.h b/include/deal.II/base/table.h index ebbd0941e5..20c3636702 100644 --- a/include/deal.II/base/table.h +++ b/include/deal.II/base/table.h @@ -1878,36 +1878,6 @@ public: }; -/** - * A namespace for iterators for TransposeTable. TransposeTable is unique in - * that it stores entries in column-major order. - * - * @warning The classes defined in this namespace have been deprecated in - * favor of the more general versions in MatrixTableIterators. Use those - * instead. - */ -namespace TransposeTableIterators -{ - template - using AccessorBase DEAL_II_DEPRECATED = MatrixTableIterators::AccessorBase< - TransposeTable, - Constness, - MatrixTableIterators::Storage::column_major>; - - template - using Accessor DEAL_II_DEPRECATED = - MatrixTableIterators::Accessor, - Constness, - MatrixTableIterators::Storage::column_major>; - - template - using Iterator DEAL_II_DEPRECATED = - MatrixTableIterators::Iterator, - Constness, - MatrixTableIterators::Storage::column_major>; -} // namespace TransposeTableIterators - - /** * A class representing a transpose two-dimensional table, i.e. a matrix of * objects (not necessarily only numbers) in column first numbering (FORTRAN diff --git a/tests/base/transpose_table_iterators_0.cc b/tests/base/transpose_table_iterators_0.cc index fff3657ba4..58858deea2 100644 --- a/tests/base/transpose_table_iterators_0.cc +++ b/tests/base/transpose_table_iterators_0.cc @@ -101,13 +101,21 @@ main() { TransposeTable table(2, 2); - TransposeTableIterators::Accessor a3(&table, 2); - TransposeTableIterators::Accessor a4(&table, 2); - deallog - << "Accessors refer to the same entry: " - << (&(TransposeTableIterators::Accessor(a4).value()) == - &(a3.value())) - << std::endl; + MatrixTableIterators::Accessor, + true, + MatrixTableIterators::Storage::column_major> + a3(&table, 2); + MatrixTableIterators::Accessor, + false, + MatrixTableIterators::Storage::column_major> + a4(&table, 2); + deallog << "Accessors refer to the same entry: " + << (&(MatrixTableIterators::Accessor< + TransposeTable, + true, + MatrixTableIterators::Storage::column_major>(a4) + .value()) == &(a3.value())) + << std::endl; } // test a non-empty rectangular table