Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

Containers.h

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 
00003 //=============================================================================
00004 /**
00005  *  @file    Containers.h
00006  *
00007  *  $Id: Containers.h,v 1.1.1.4 2003/02/21 18:36:32 chad Exp $
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 template <class T>
00025 class ACE_Double_Linked_List;
00026 
00027 template <class T>
00028 class ACE_Double_Linked_List_Iterator_Base;
00029 template <class T>
00030 class ACE_Double_Linked_List_Iterator;
00031 template <class T>
00032 class ACE_Double_Linked_List_Reverse_Iterator;
00033 
00034 /**
00035  * @class ACE_DLList_Node
00036  *
00037  * @brief Base implementation of element in a DL list.  Needed for
00038  * ACE_Double_Linked_List.
00039  */
00040 class ACE_Export ACE_DLList_Node
00041 {
00042 public:
00043   friend class ACE_Double_Linked_List<ACE_DLList_Node>;
00044   friend class ACE_Double_Linked_List_Iterator_Base<ACE_DLList_Node>;
00045   friend class ACE_Double_Linked_List_Iterator<ACE_DLList_Node>;
00046   friend class ACE_Double_Linked_List_Reverse_Iterator<ACE_DLList_Node>;
00047 
00048   ACE_DLList_Node (void *&i,
00049                    ACE_DLList_Node *n = 0,
00050                    ACE_DLList_Node *p = 0);
00051   ~ACE_DLList_Node (void);
00052 
00053   /// Declare the dynamic allocation hooks.
00054   ACE_ALLOC_HOOK_DECLARE;
00055 
00056   void *item_;
00057 
00058   ACE_DLList_Node *next_;
00059   ACE_DLList_Node *prev_;
00060 
00061 protected:
00062   ACE_DLList_Node (void);
00063 };
00064 
00065 #if defined (__ACE_INLINE__)
00066 #include "ace/Containers.i"
00067 #endif /* __ACE_INLINE__ */
00068 
00069 #include "ace/Containers_T.h"
00070 
00071 #include "ace/post.h"
00072 
00073 #endif /* ACE_CONTAINERS_H */

Generated on Mon Jun 16 11:19:25 2003 for ACE by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002