NetAddressList::Iterator Class Reference

#include <NetAddress.hh>

Collaboration diagram for NetAddressList::Iterator:

Collaboration graph
[legend]

Public Member Functions

 Iterator (NetAddressList const &addressList)
NetAddress const * nextAddress ()

Private Attributes

NetAddressList const & fAddressList
unsigned fNextIndex

Detailed Description

Definition at line 74 of file NetAddress.hh.


Constructor & Destructor Documentation

NetAddressList::Iterator::Iterator ( NetAddressList const &  addressList  ) 

Definition at line 184 of file NetAddress.cpp.

00185   : fAddressList(addressList), fNextIndex(0) {}


Member Function Documentation

NetAddress const * NetAddressList::Iterator::nextAddress (  ) 

Definition at line 187 of file NetAddress.cpp.

References NetAddressList::fAddressArray, fAddressList, fNextIndex, NULL, and NetAddressList::numAddresses().

00187                                                       {
00188   if (fNextIndex >= fAddressList.numAddresses()) return NULL; // no more
00189   return fAddressList.fAddressArray[fNextIndex++];
00190 }


Field Documentation

NetAddressList const& NetAddressList::Iterator::fAddressList [private]

Definition at line 79 of file NetAddress.hh.

Referenced by nextAddress().

unsigned NetAddressList::Iterator::fNextIndex [private]

Definition at line 80 of file NetAddress.hh.

Referenced by nextAddress().


The documentation for this class was generated from the following files:
Generated on Tue Oct 7 15:40:03 2008 for live by  doxygen 1.5.2