]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Provide copy constructors for iterators.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 29 Sep 2013 23:18:26 +0000 (23:18 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 29 Sep 2013 23:18:26 +0000 (23:18 +0000)
git-svn-id: https://svn.dealii.org/trunk@31019 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/lac/trilinos_sparsity_pattern.h

index bd0d7c70ea2f2343aba8f5a95db6348a2ee268a7..22f1ade8d0bb6d8336722977120a319d65d16394 100644 (file)
@@ -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 &

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.