summaryrefslogtreecommitdiff
path: root/ace/Stream.inl
diff options
context:
space:
mode:
Diffstat (limited to 'ace/Stream.inl')
-rw-r--r--ace/Stream.inl49
1 files changed, 49 insertions, 0 deletions
diff --git a/ace/Stream.inl b/ace/Stream.inl
new file mode 100644
index 00000000000..42a4989eff0
--- /dev/null
+++ b/ace/Stream.inl
@@ -0,0 +1,49 @@
+/* -*- C++ -*- */
+// $Id$
+
+// Stream.i
+
+template <ACE_SYNCH_DECL> ACE_INLINE ACE_Module<ACE_SYNCH_USE> *
+ACE_Stream<ACE_SYNCH_USE>::head (void)
+{
+ ACE_TRACE ("ACE_Stream<ACE_SYNCH_USE>::head");
+ return this->stream_head_;
+}
+
+template <ACE_SYNCH_DECL> ACE_INLINE ACE_Module<ACE_SYNCH_USE> *
+ACE_Stream<ACE_SYNCH_USE>::tail (void)
+{
+ ACE_TRACE ("ACE_Stream<ACE_SYNCH_USE>::tail");
+ return this->stream_tail_;
+}
+
+template <ACE_SYNCH_DECL> ACE_INLINE int
+ACE_Stream<ACE_SYNCH_USE>::wait (void)
+{
+ ACE_TRACE ("ACE_Stream<ACE_SYNCH_USE>::wait");
+ return this->final_close_.wait ();
+}
+
+template <ACE_SYNCH_DECL> ACE_INLINE int
+ACE_Stream_Iterator<ACE_SYNCH_USE>::next (const ACE_Module<ACE_SYNCH_USE> *&mod)
+{
+ ACE_TRACE ("ACE_Stream_Iterator<ACE_SYNCH_USE>::next");
+ mod = this->next_;
+ return this->next_ != 0;
+}
+
+template <ACE_SYNCH_DECL> ACE_INLINE int
+ACE_Stream_Iterator<ACE_SYNCH_USE>::done (void) const
+{
+ ACE_TRACE ("ACE_Stream_Iterator<ACE_SYNCH_USE>::done");
+ return this->next_ == 0;
+}
+
+template <ACE_SYNCH_DECL> int
+ACE_Stream_Iterator<ACE_SYNCH_USE>::advance (void)
+{
+ ACE_TRACE ("ACE_Stream_Iterator<ACE_SYNCH_USE>::advance");
+ this->next_ = this->next_->next ();
+ return this->next_ != 0;
+}
+