00001 // -*- C++ -*- 00002 00003 //============================================================================= 00004 /** 00005 * @file Containers.h 00006 * 00007 * $Id: Containers.h 77853 2007-03-30 12:11:47Z johnnyw $ 00008 * 00009 * @author Douglas C. Schmidt <schmidt@cs.wustl.edu> 00010 */ 00011 //============================================================================= 00012 00013 #ifndef ACE_CONTAINERS_H 00014 #define ACE_CONTAINERS_H 00015 00016 #include /**/ "ace/pre.h" 00017 00018 #include /**/ "ace/ACE_export.h" 00019 00020 #if !defined (ACE_LACKS_PRAGMA_ONCE) 00021 # pragma once 00022 #endif /* ACE_LACKS_PRAGMA_ONCE */ 00023 00024 ACE_BEGIN_VERSIONED_NAMESPACE_DECL 00025 00026 template <class T> class ACE_Double_Linked_List; 00027 template <class T> class ACE_Double_Linked_List_Iterator_Base; 00028 template <class T> class ACE_Double_Linked_List_Iterator; 00029 template <class T> class ACE_Double_Linked_List_Reverse_Iterator; 00030 00031 /** 00032 * @class ACE_DLList_Node 00033 * 00034 * @brief Base implementation of element in a DL list. Needed for 00035 * ACE_Double_Linked_List. 00036 */ 00037 class ACE_Export ACE_DLList_Node 00038 { 00039 public: 00040 friend class ACE_Double_Linked_List<ACE_DLList_Node>; 00041 friend class ACE_Double_Linked_List_Iterator_Base<ACE_DLList_Node>; 00042 friend class ACE_Double_Linked_List_Iterator<ACE_DLList_Node>; 00043 friend class ACE_Double_Linked_List_Reverse_Iterator<ACE_DLList_Node>; 00044 00045 ACE_DLList_Node (void *i, 00046 ACE_DLList_Node *n = 0, 00047 ACE_DLList_Node *p = 0); 00048 00049 /// Declare the dynamic allocation hooks. 00050 ACE_ALLOC_HOOK_DECLARE; 00051 00052 void *item_; 00053 00054 ACE_DLList_Node *next_; 00055 ACE_DLList_Node *prev_; 00056 00057 protected: 00058 ACE_DLList_Node (void); 00059 }; 00060 00061 ACE_END_VERSIONED_NAMESPACE_DECL 00062 00063 #if defined (__ACE_INLINE__) 00064 #include "ace/Containers.inl" 00065 #endif /* __ACE_INLINE__ */ 00066 00067 #include "ace/Containers_T.h" 00068 00069 #include /**/ "ace/post.h" 00070 00071 #endif /* ACE_CONTAINERS_H */