Merge pull request #2301 from sonndinh/remove-dup-reactor-functions
[ACE_TAO.git] / ACE / ace / Stream.inl
blob191b21923f2d2c1174de6e2c4c9053dbc3571c2d
1 // -*- C++ -*-
2 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
4 template <ACE_SYNCH_DECL, class TIME_POLICY> ACE_INLINE ACE_Module<ACE_SYNCH_USE, TIME_POLICY> *
5 ACE_Stream<ACE_SYNCH_USE, TIME_POLICY>::head ()
7   ACE_TRACE ("ACE_Stream<ACE_SYNCH_USE, TIME_POLICY>::head");
8   return this->stream_head_;
11 template <ACE_SYNCH_DECL, class TIME_POLICY> ACE_INLINE ACE_Module<ACE_SYNCH_USE, TIME_POLICY> *
12 ACE_Stream<ACE_SYNCH_USE, TIME_POLICY>::tail ()
14   ACE_TRACE ("ACE_Stream<ACE_SYNCH_USE, TIME_POLICY>::tail");
15   return this->stream_tail_;
18 template <ACE_SYNCH_DECL, class TIME_POLICY> ACE_INLINE int
19 ACE_Stream<ACE_SYNCH_USE, TIME_POLICY>::wait ()
21   ACE_TRACE ("ACE_Stream<ACE_SYNCH_USE, TIME_POLICY>::wait");
22   return this->final_close_.wait ();
25 template <ACE_SYNCH_DECL, class TIME_POLICY> ACE_INLINE int
26 ACE_Stream_Iterator<ACE_SYNCH_USE, TIME_POLICY>::next (const ACE_Module<ACE_SYNCH_USE, TIME_POLICY> *&mod)
28   ACE_TRACE ("ACE_Stream_Iterator<ACE_SYNCH_USE, TIME_POLICY>::next");
29   mod = this->next_;
30   return this->next_ != 0;
33 template <ACE_SYNCH_DECL, class TIME_POLICY> ACE_INLINE int
34 ACE_Stream_Iterator<ACE_SYNCH_USE, TIME_POLICY>::done () const
36   ACE_TRACE ("ACE_Stream_Iterator<ACE_SYNCH_USE, TIME_POLICY>::done");
37   return this->next_ == 0;
40 template <ACE_SYNCH_DECL, class TIME_POLICY> int
41 ACE_Stream_Iterator<ACE_SYNCH_USE, TIME_POLICY>::advance ()
43   ACE_TRACE ("ACE_Stream_Iterator<ACE_SYNCH_USE, TIME_POLICY>::advance");
44   this->next_ = this->next_->next ();
45   return this->next_ != 0;
48 ACE_END_VERSIONED_NAMESPACE_DECL