Main Page   Class Hierarchy   Compound List   Header Files   Compound Members  

ddgIterator Class Reference

This object is used to traverse a DGroup object. More...

#include <ddggroup.h>

List of all members.


Public Members

 ddgIterator ( void )
Default Constructor.

 ddgIterator ( ddgGroup *l )
Constuctor initialized with a ddgGroup.

void initFirst ( ddgGroup * l )
void initLast ( ddgGroup * l )
ddgNodeoperator * ( void ) const
Return the element in the list to which the iterator is currently pointing.

ddgIterator& operator++ ( void )
Inlining of the following causes problems in some cases on the SGI. More...

ddgIterator& operator++ ( int )
{ if (_list && (_index < _list->size())) _index++; return *this;}.

ddgIterator& operator-- ( void )
{ DIterator tmp = *this; if (_list && (_index < _list->size())) _index++; return tmp;}.

ddgIterator& operator-- ( int )
{ if (_list && (_index >= 0)) _index--; return *this;}.


Detailed Description

This object is used to traverse a DGroup object.

It remebers its current location in the object it is traversing. Multiple Iterators can operate on the same DGroup.


Member Function Documentation

ddgIterator & ddgIterator::operator++ (void)

Inlining of the following causes problems in some cases on the SGI.

The following while expression will fail: Iterator it( list ), it2 ( list2 ); while ( *it++ && *it2++) { do something }


The documentation for this class was generated from the following files:
Generated at Sun Sep 17 19:27:54 2000 for Digital Dawn Graphics Toolkit by doxygen 0.49-991205 written by Dimitri van Heesch, © 1997-1999