From a3c52f757a133c957bd17f99dd2e2c69aed6e874 Mon Sep 17 00:00:00 2001 From: bangerth Date: Fri, 19 Nov 2010 16:36:35 +0000 Subject: [PATCH] Minor re-indenting while reading through the class. Change the lovely word "reduplicate" into "duplicate" ;-) git-svn-id: https://svn.dealii.org/trunk@22823 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/include/deal.II/base/vector_slice.h | 30 ++++++++++++--------- 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/deal.II/include/deal.II/base/vector_slice.h b/deal.II/include/deal.II/base/vector_slice.h index 83dba1f36d..fbd813c9c7 100644 --- a/deal.II/include/deal.II/base/vector_slice.h +++ b/deal.II/include/deal.II/base/vector_slice.h @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 2004, 2005, 2006 by the deal.II authors +// Copyright (C) 2004, 2005, 2006, 2010 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -17,11 +17,13 @@ #include DEAL_II_NAMESPACE_OPEN + + /** * Filter a range out of any object having a random access operator[] * (unsigned int) and a function size() const. * - * The use of this object is straightforward. It reduplicates the + * The use of this object is straightforward. It duplicates the * random access operator of the VECTOR and adds an offset to * every index. * @@ -79,7 +81,7 @@ class VectorSlice * std::vector. */ typename VECTOR::reference operator[] (unsigned int i); - + /** * Access an element of a * constant slice using the same @@ -92,22 +94,22 @@ class VectorSlice * STL conforming iterator function. */ typename VECTOR::iterator begin(); - + /** * STL conforming iterator function. */ typename VECTOR::const_iterator begin() const; - + /** * STL conforming iterator function. */ typename VECTOR::iterator end(); - + /** * STL conforming iterator function. */ typename VECTOR::const_iterator end() const; - + private: /** * The vector we extract from. @@ -152,7 +154,9 @@ make_slice (VECTOR& v) template inline const VectorSlice -make_slice (VECTOR& v, unsigned int start, unsigned int length) +make_slice (VECTOR& v, + const unsigned int start, + const unsigned int length) { const VectorSlice r(v, start, length); return r; @@ -166,7 +170,8 @@ make_slice (VECTOR& v, unsigned int start, unsigned int length) template inline VectorSlice::VectorSlice(VECTOR& v) - : v(v), start(0), length(v.size()) + : + v(v), start(0), length(v.size()) {} @@ -175,7 +180,8 @@ inline VectorSlice::VectorSlice(VECTOR& v, unsigned int start, unsigned int length) - : v(v), start(start), length(length) + : + v(v), start(start), length(length) { Assert((start+length<=v.size()), ExcIndexRange(length, 0, v.size()-start+1)); @@ -197,7 +203,7 @@ typename VECTOR::reference VectorSlice::operator[](unsigned int i) { Assert ((i::operator[](unsigned int i) const { Assert ((i