Click on the banner to return to the Class Reference home page.

©Copyright 1996 Rogue Wave Software

RWTIsvDlistIterator<T>

Synopsis

#include <rw/tidlist.h>
RWTIsvDlist<T> list;
RWTIsvDlistIterator<T> iterator(list);

Description

Iterator for class RWTIsvDlist<T>, allowing sequential access to all the elements of a doubly-linked parameterized intrusive list. Elements are accessed in order, in either direction.

The "current item" is undefined immediately after construction -- you must define it by using operator() or some other (valid) operation.

Once the iterator has advanced beyond the end of the collection it is no longer valid -- continuing to use it will bring undefined results.

Persistence

None

Public Constructor

RWTIsvDlistIterator(RWTIsvDlist<T>& c);

Public Operators

T*
operator++();
T*
operator--();
T*
operator+=(size_t n);
T*
operator-=(size_t n);
T*
operator()();

Public Member Functions

RWTIsvDlist<T>*
container() const;
T*
findNext(RWBoolean (*testFun)(const T*, void*),void*);
void
insertAfterPoint(T* a);
T*
key() const;
T*
remove();
T*
removeNext(RWBoolean (*testFun)(const T*, void*),void*);
void
reset();
void
reset(RWTIsvDlist<TL>& c);