Rogue Wave Software logo banner

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

©Copyright 1996 Rogue Wave Software

RWTIsvSlistIterator<T>

Synopsis

#include <rw/tislist.h>
RWTIsvSlist<T> list;
RWTIsvSlistIterator<T> iterator(list);

Description

Iterator for class RWTIsvSlist<T>, allowing sequential access to all the elements of a singly-linked parameterized intrusive list. Elements are accessed in order, from first to last.

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

RWTIsvSlistIterator(RWTIsvSlist<T>& c);

Public Operators

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

Public Member Functions

RWTIsvSlist<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(RWTIsvSlist<TL>& c);