summaryrefslogtreecommitdiff
path: root/ACE/ace/Unbounded_Queue.inl
diff options
context:
space:
mode:
Diffstat (limited to 'ACE/ace/Unbounded_Queue.inl')
-rw-r--r--ACE/ace/Unbounded_Queue.inl27
1 files changed, 27 insertions, 0 deletions
diff --git a/ACE/ace/Unbounded_Queue.inl b/ACE/ace/Unbounded_Queue.inl
new file mode 100644
index 00000000000..35bb7fb9cdf
--- /dev/null
+++ b/ACE/ace/Unbounded_Queue.inl
@@ -0,0 +1,27 @@
+// -*- C++ -*-
+//
+// $Id$
+
+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 int
+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 int
+ACE_Unbounded_Queue<T>::is_full (void) const
+{
+ // ACE_TRACE ("ACE_Unbounded_Queue<T>::is_full");
+ return 0; // We should implement a "node of last resort for this..."
+}
+
+ACE_END_VERSIONED_NAMESPACE_DECL