From: Wolfgang Bangerth Date: Sun, 29 Sep 2013 23:18:26 +0000 (+0000) Subject: Provide copy constructors for iterators. X-Git-Tag: v8.1.0~689 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=412fbc627a905127e5fe9a37de5292910932b1e2;p=dealii.git Provide copy constructors for iterators. git-svn-id: https://svn.dealii.org/trunk@31019 0785d39b-7218-0410-832d-ea1e28bc413d --- 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 &