summaryrefslogtreecommitdiff
path: root/ace/Stream.h
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>1997-05-04 22:05:57 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>1997-05-04 22:05:57 +0000
commitab19ac45d182225dcc99bb26692fdc5c1a23b2c6 (patch)
treefede1668935d2b7eb674eea741c54d6f2dd13743 /ace/Stream.h
parent9d603c20f7f8fe88de6493efbe0ecc42e3922f7d (diff)
downloadATCD-ab19ac45d182225dcc99bb26692fdc5c1a23b2c6.tar.gz
*** empty log message ***
Diffstat (limited to 'ace/Stream.h')
-rw-r--r--ace/Stream.h17
1 files changed, 16 insertions, 1 deletions
diff --git a/ace/Stream.h b/ace/Stream.h
index b4b7d648f13..2d81e618a0b 100644
--- a/ace/Stream.h
+++ b/ace/Stream.h
@@ -159,14 +159,29 @@ private:
template <ACE_SYNCH_1>
class ACE_Stream_Iterator
+ // = TITLE
+ // Iterate through an <ACE_Stream>.
{
public:
+ // = Initialization method.
ACE_Stream_Iterator (const ACE_Stream<ACE_SYNCH_2> &sr);
- int next (const ACE_Module<ACE_SYNCH_2> *&mo);
+
+ // = Iteration methods.
+
+ int next (const ACE_Module<ACE_SYNCH_2> *&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:
ACE_Module<ACE_SYNCH_2> *next_;
+ // Next <Module> that we haven't yet seen.
};
#if defined (__ACE_INLINE__)