diff options
author | schnetter <> | 2004-03-11 11:03:00 +0000 |
---|---|---|
committer | schnetter <> | 2004-03-11 11:03:00 +0000 |
commit | 86ba40e1db5ae8483f76f4cdf9740a073cfdf2ba (patch) | |
tree | 3ad502d9d752d720a8d1e1cd6614d42580884cac /Carpet/CarpetLib/src/bbox.cc | |
parent | e50fd02395b98d08dad0f0368abd67022b5a796f (diff) |
Remove old-style iteratorT types and routines.
Remove old-style iteratorT types and routines.
Add doxygen comments.
darcs-hash:20040311110344-07bb3-ce9e356a02388278c8508946eac32a98b6cdafee.gz
Diffstat (limited to 'Carpet/CarpetLib/src/bbox.cc')
-rw-r--r-- | Carpet/CarpetLib/src/bbox.cc | 33 |
1 files changed, 1 insertions, 32 deletions
diff --git a/Carpet/CarpetLib/src/bbox.cc b/Carpet/CarpetLib/src/bbox.cc index e6123db5a..9cf82183c 100644 --- a/Carpet/CarpetLib/src/bbox.cc +++ b/Carpet/CarpetLib/src/bbox.cc @@ -1,4 +1,4 @@ -// $Header: /home/eschnett/C/carpet/Carpet/Carpet/CarpetLib/src/bbox.cc,v 1.21 2004/02/27 15:40:40 schnetter Exp $ +// $Header: /home/eschnett/C/carpet/Carpet/Carpet/CarpetLib/src/bbox.cc,v 1.22 2004/03/11 12:03:44 schnetter Exp $ #include <assert.h> @@ -210,37 +210,6 @@ typename bbox<T,D>::iterator bbox<T,D>::end () const { return iterator(*this, upper()); } -template<class T, int D> -bbox<T,D>::iteratorT::iteratorT (const bbox& box, const vect<T,D>& pos) - : box(box), pos(pos) { - if (box.empty()) this->pos=box.upper(); -} - -template<class T, int D> -bool bbox<T,D>::iteratorT::operator!= (const iteratorT& i) const { - return any(pos!=i.pos); -} - -template<class T, int D> -typename bbox<T,D>::iteratorT& bbox<T,D>::iteratorT::operator++ () { - for (int d=D-1; d>=0; --d) { - pos[d]+=box.stride()[d]; - if (pos[d]<=box.upper()[d]) break; - pos[d]=box.lower()[d]; - } - return *this; -} - -template<class T, int D> -typename bbox<T,D>::iteratorT bbox<T,D>::beginT () const { - return iteratorT(*this, lower()); -} - -template<class T, int D> -typename bbox<T,D>::iteratorT bbox<T,D>::endT () const { - return iteratorT(*this, upper()); -} - // Input |