]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
const-ify two parameters.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 15 Apr 2003 22:55:17 +0000 (22:55 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 15 Apr 2003 22:55:17 +0000 (22:55 +0000)
git-svn-id: https://svn.dealii.org/trunk@7395 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/include/lac/sparse_matrix.h
deal.II/lac/include/lac/sparse_matrix_ez.h

index 8a7df79ae0bcc5e6d796b133e794539ee14cc60f..d5d6680460739f1956bd22e4c82670f681d36837 100644 (file)
@@ -864,12 +864,12 @@ class SparseMatrix : public Subscriptor
                                      * STL-like iterator with the
                                      * first entry of row @p{r}.
                                      */
-    const_iterator begin (unsigned int r) const;
+    const_iterator begin (const unsigned int r) const;
 
                                     /**
                                      * Final iterator of row @p{r}.
                                      */
-    const_iterator end (unsigned int r) const;
+    const_iterator end (const unsigned int r) const;
     
                                     /**
                                      * Print the matrix to the given
@@ -1486,7 +1486,7 @@ SparseMatrix<number>::end () const
 template <typename number>
 inline
 typename SparseMatrix<number>::const_iterator
-SparseMatrix<number>::begin (unsigned int r) const
+SparseMatrix<number>::begin (const unsigned int r) const
 {
   Assert (r<m(), ExcIndexRange(r,0,m()));
   return const_iterator(this, r, 0);
@@ -1495,7 +1495,7 @@ SparseMatrix<number>::begin (unsigned int r) const
 template <typename number>
 inline
 typename SparseMatrix<number>::const_iterator
-SparseMatrix<number>::end (unsigned int r) const
+SparseMatrix<number>::end (const unsigned int r) const
 {
   Assert (r<m(), ExcIndexRange(r,0,m()));
   return const_iterator(this, r+1, 0);
index 158c276dab49b45479f080f2496b270bf6f86c0f..c8542d1e354141c2dfcd650b43bf30f536987b9f 100644 (file)
@@ -801,12 +801,12 @@ class SparseMatrixEZ : public Subscriptor
                                      * STL-like iterator with the
                                      * first entry of row @p{r}.
                                      */
-    const_iterator begin (unsigned int r) const;
+    const_iterator begin (const unsigned int r) const;
 
                                     /**
                                      * Final iterator of row @p{r}.
                                      */
-    const_iterator end (unsigned int r) const;
+    const_iterator end (const unsigned int r) const;
     
                                     /**
                                      * Return the number of nonzero
@@ -1393,7 +1393,7 @@ SparseMatrixEZ<number>::end () const
 template <typename number>
 inline
 typename SparseMatrixEZ<number>::const_iterator
-SparseMatrixEZ<number>::begin (unsigned int r) const
+SparseMatrixEZ<number>::begin (const unsigned int r) const
 {
   Assert (r<m(), ExcIndexRange(r,0,m()));
   return const_iterator(this, r, 0);
@@ -1402,7 +1402,7 @@ SparseMatrixEZ<number>::begin (unsigned int r) const
 template <typename number>
 inline
 typename SparseMatrixEZ<number>::const_iterator
-SparseMatrixEZ<number>::end (unsigned int r) const
+SparseMatrixEZ<number>::end (const unsigned int r) const
 {
   Assert (r<m(), ExcIndexRange(r,0,m()));
   return const_iterator(this, r+1, 0);

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.