Developer Documentation |
RAVL, Recognition And Vision Library |
USER | HOME PAGE | CLASS LIST | CONTENTS |
Ravl - Core - Lists - DLIterC<class DataT> |
DLIterC<class DataT> | |
Double linked list iterator. | |
include | "Ravl/DLIter.hh" |
Source file: | Ravl/Core/Container/DList/DLIter.hh |
User Level: | Normal |
Library: | RavlCore |
Example: | exDList.cc |
In Scope: | RavlN |
Because the moves the prevous element it makes it easy to delete elements from a list in a for() loop. e.g. the following will work correctly.
for(DLIterCit(x);it;it++) if(*it == 2) it.Del();
Returns a reference to this iterator.
Returns a reference to this iterator.
NB. It is the user's responsibility to ensure 'end' is an
element following this element in the same list.
Maintainer:Radek Marik, Charles Galambos, Documentation by CxxDoc: Tue Aug 13 09:59:30 2002 |