aboutsummaryrefslogtreecommitdiff
path: root/dep/acelite/ace/Unbounded_Queue.inl
blob: 81e3ded3e04a6b2f66430ad7277ab65f1427a55f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// -*- C++ -*-
//
// $Id: Unbounded_Queue.inl 84316 2009-02-03 19:46:05Z johnnyw $

ACE_BEGIN_VERSIONED_NAMESPACE_DECL

template <class T> ACE_INLINE size_t
ACE_Unbounded_Queue<T>::size (void) const
{
  return this->cur_size_;
}

template <class T> ACE_INLINE bool
ACE_Unbounded_Queue<T>::is_empty (void) const
{
  //  ACE_TRACE ("ACE_Unbounded_Queue<T>::is_empty");
  return this->head_ == this->head_->next_;
}

template <class T> ACE_INLINE bool
ACE_Unbounded_Queue<T>::is_full (void) const
{
  //  ACE_TRACE ("ACE_Unbounded_Queue<T>::is_full");
  return false; // We should implement a "node of last resort for this..."
}

ACE_END_VERSIONED_NAMESPACE_DECL