[Insight-developers] Iterators --

Miller, James V (CRD) millerjv@crd.ge.com
Mon, 21 May 2001 07:52:54 -0400


I think I would have preferred using names similar STL like RBegin() and REnd() or ReverseBegin() and
ReverseEnd() and then adding the method IsAtReverseEnd() than using methods like
GoToBegin()/GoToEnd().

But as I mentioned in the tcon, I need to look at how some of the loops will end up being written in
order to decide whether we should stay close to STL or not.

The standard argument still applies.  If we are somewhat close to STL, then people should be able to
map STL's API to our API rather easily. This mapping will become increasingly difficult as we diverge
from STL syntax.  On the other hand, our iterators have to behave somewhat differently from STL since
they are not walking a linear structure.  So a completely new API may be best so users do not try to
do something with our iterators that STL allows but we do not.


-----Original Message-----
From: Luis Ibanez [mailto:ibanez@choroid.cs.unc.edu]
Sent: Friday, May 18, 2001 4:34 PM
To: insight-Developers
Subject: [Insight-developers] Iterators --




The operator -- is working now on:

  SimpleImageRegionIterator
  SimpleImageRegionConstIterator

The base classes:

  ImageIteratorWithIndex
  ImageConstIteratorWithIndex

now have the methods:

   GoToBegin()
   GoToEnd()

while

   Begin() and End() are marked as deprecated
   using the doxygen command   \deprecated


The other iterators are now entering in
the "todo" list for implementing the operator--



Luis




_______________________________________________
Insight-developers mailing list
Insight-developers@public.kitware.com
http://public.kitware.com/mailman/listinfo/insight-developers