From b8d01178c22467046b61ec53775ebda8b93c56e5 Mon Sep 17 00:00:00 2001 From: bangerth Date: Sun, 29 Sep 2013 23:18:26 +0000 Subject: [PATCH] Provide copy constructors for iterators. git-svn-id: https://svn.dealii.org/trunk@31019 0785d39b-7218-0410-832d-ea1e28bc413d --- .../deal.II/lac/trilinos_sparsity_pattern.h | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/deal.II/include/deal.II/lac/trilinos_sparsity_pattern.h b/deal.II/include/deal.II/lac/trilinos_sparsity_pattern.h index bd0d7c70ea..22f1ade8d0 100644 --- a/deal.II/include/deal.II/lac/trilinos_sparsity_pattern.h +++ b/deal.II/include/deal.II/lac/trilinos_sparsity_pattern.h @@ -87,6 +87,11 @@ namespace TrilinosWrappers const size_type row, const size_type index); + /** + * Copy constructor. + */ + Accessor (const Accessor &a); + /** * Row number of the element * represented by this object. @@ -203,6 +208,11 @@ namespace TrilinosWrappers const size_type row, const size_type index); + /** + * Copy constructor. + */ + Iterator (const Iterator &i); + /** * Prefix increment. */ @@ -1412,6 +1422,16 @@ namespace TrilinosWrappers } + inline + Accessor::Accessor (const Accessor &a) + : + sparsity_pattern(a.sparsity_pattern), + a_row(a.a_row), + a_index(a.a_index), + colnum_cache (a.colnum_cache) + {} + + inline Accessor::size_type Accessor::row() const @@ -1451,6 +1471,13 @@ namespace TrilinosWrappers {} + inline + Iterator::Iterator(const Iterator &i) + : + accessor(i.accessor) + {} + + inline Iterator & -- 2.39.5