Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

ACE_Stream_Iterator Class Template Reference

Iterate through an . More...

#include <Stream.h>

Collaboration diagram for ACE_Stream_Iterator:

Collaboration graph
[legend]
List of all members.

Public Methods

 ACE_Stream_Iterator (const ACE_Stream<ACE_SYNCH_USE> &sr)
int next (const ACE_Module<ACE_SYNCH_USE> *&next_item)
 Pass back the <next_item> that hasn't been seen in the set. Returns 0 when all items have been seen, else 1.

int done (void) const
 Returns 1 when all items have been seen, else 0.

int advance (void)
 Move forward by one element in the set. Returns 0 when all the items in the set have been seen, else 1.


Private Attributes

ACE_Module<ACE_SYNCH_USE>* next_
 Next <Module> that we haven't yet seen.


Detailed Description

template<ACE_SYNCH_DECL> template class ACE_Stream_Iterator

Iterate through an .


Constructor & Destructor Documentation

template<ACE_SYNCH_DECL>
ACE_Stream_Iterator< ACE_SYNCH_USE >::ACE_Stream_Iterator<> ( const ACE_Stream< ACE_SYNCH_USE >& sr )
 


Member Function Documentation

template<ACE_SYNCH_DECL>
int ACE_Stream_Iterator< ACE_SYNCH_USE >::advance ( void )
 

Move forward by one element in the set. Returns 0 when all the items in the set have been seen, else 1.

template<ACE_SYNCH_DECL>
ACE_INLINE int ACE_Stream_Iterator< ACE_SYNCH_USE >::done ( void ) const
 

Returns 1 when all items have been seen, else 0.

template<ACE_SYNCH_DECL>
ACE_INLINE int ACE_Stream_Iterator< ACE_SYNCH_USE >::next ( const ACE_Module< ACE_SYNCH_USE >*& mod )
 

Pass back the <next_item> that hasn't been seen in the set. Returns 0 when all items have been seen, else 1.


Member Data Documentation

template<ACE_SYNCH_DECL>
ACE_Module< ACE_SYNCH_USE >* ACE_Stream_Iterator<>::next_ [private]
 

Next <Module> that we haven't yet seen.


The documentation for this class was generated from the following files:
Generated at Fri Oct 5 07:04:52 2001 for ACE by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000