ACE 8.0.0
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
ACE_Stream_Iterator< ACE_SYNCH_DECL, TIME_POLICY > Class Template Reference

Iterate through an ACE_Stream. More...

#include <Stream.h>

Collaboration diagram for ACE_Stream_Iterator< ACE_SYNCH_DECL, TIME_POLICY >:
Collaboration graph
[legend]

Public Member Functions

 ACE_Stream_Iterator (const ACE_Stream< ACE_SYNCH_USE, TIME_POLICY > &sr)
 
int next (const ACE_Module< ACE_SYNCH_USE, TIME_POLICY > *&next_item)
 
int done () const
 Returns 1 when all items have been seen, else 0.
 
int advance ()
 

Private Attributes

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

Detailed Description

template<ACE_SYNCH_DECL, class TIME_POLICY = ACE_System_Time_Policy>
class ACE_Stream_Iterator< ACE_SYNCH_DECL, TIME_POLICY >

Iterate through an ACE_Stream.

Constructor & Destructor Documentation

◆ ACE_Stream_Iterator()

Member Function Documentation

◆ advance()

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

◆ done()

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

◆ next()

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

◆ next_

Next ACE_Module that we haven't yet seen.


The documentation for this class was generated from the following files: