Rogue Wave banner
Previous fileTop of documentContentsIndexNext file

RWTIsvDlistIterator<T>

Data Type and Member Function Indexes
(exclusive of constructors and destructors)

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);


Previous fileTop of documentContentsIndexNext file
©Copyright 1999, Rogue Wave Software, Inc.
Send mail to report errors or comment on the documentation.