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 <ACE_Stream>. 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. More...

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

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. More...


Private Attributes

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


Detailed Description

template<ACE_SYNCH_DECL>
class ACE_Stream_Iterator<>

Iterate through an <ACE_Stream>.

Definition at line 195 of file Stream.h.


Constructor & Destructor Documentation

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

Definition at line 609 of file Stream.cpp.

References ACE_TRACE.

00610   : next_ (sr.stream_head_)
00611 {
00612   ACE_TRACE ("ACE_Stream_Iterator<ACE_SYNCH_USE>::ACE_Stream_Iterator");
00613 }


Member Function Documentation

template<ACE_SYNCH_DECL >
int ACE_Stream_Iterator<>::advance void   
 

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

Definition at line 43 of file Stream.i.

References ACE_TRACE, ACE_Module< ACE_SYNCH_USE >::next, and next_.

00044 {
00045   ACE_TRACE ("ACE_Stream_Iterator<ACE_SYNCH_USE>::advance");
00046   this->next_ = this->next_->next ();
00047   return this->next_ != 0;
00048 }

template<ACE_SYNCH_DECL >
ACE_INLINE int ACE_Stream_Iterator<>::done void    const
 

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

Definition at line 36 of file Stream.i.

References ACE_TRACE, and next_.

00037 {
00038   ACE_TRACE ("ACE_Stream_Iterator<ACE_SYNCH_USE>::done");
00039   return this->next_ == 0;
00040 }

template<ACE_SYNCH_DECL >
ACE_INLINE int ACE_Stream_Iterator<>::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.

Definition at line 28 of file Stream.i.

References ACE_TRACE, and next_.

00029 {
00030   ACE_TRACE ("ACE_Stream_Iterator<ACE_SYNCH_USE>::next");
00031   mod = this->next_;
00032   return this->next_ != 0;
00033 }


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.

Definition at line 216 of file Stream.h.

Referenced by advance, done, and next.


The documentation for this class was generated from the following files:
Generated on Mon Jun 16 12:56:53 2003 for ACE by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002