Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
Essential Tools Module Reference Guide

RWTIsvDlistIterator<T>

Module:  Essential Tools Module   Group:  Traditional Collection


Does not inherit

Local Index

Members

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<T>(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 DocumentContentsIndex pageNext file

©2004 Copyright Quovadx, Inc. All Rights Reserved.
Rogue Wave and SourcePro are registered trademarks of Quovadx, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.