3 //=============================================================================
9 //=============================================================================
14 #include /**/ "ace/pre.h"
16 #include /**/ "ace/config-all.h"
18 #if !defined (ACE_LACKS_PRAGMA_ONCE)
20 #endif /* ACE_LACKS_PRAGMA_ONCE */
22 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
24 // Forward declarations.
25 template <class T
, class C
> class ACE_Unbounded_Set_Ex
;
26 template <class T
, class C
> class ACE_Unbounded_Set_Ex_Iterator
;
27 template <class T
, class C
> class ACE_Unbounded_Set_Ex_Const_Iterator
;
28 template <class T
> class ACE_Unbounded_Queue
;
29 template <class T
> class ACE_Unbounded_Queue_Iterator
;
30 template <class T
> class ACE_Unbounded_Queue_Const_Iterator
;
31 template <class T
> class ACE_Unbounded_Stack
;
32 template <class T
> class ACE_Unbounded_Stack_Iterator
;
37 * @brief Implementation element in a Queue, Set, and Stack.
39 template<class T
, class C
= void>
43 friend class ACE_Unbounded_Queue
<T
>;
44 friend class ACE_Unbounded_Queue_Iterator
<T
>;
45 friend class ACE_Unbounded_Queue_Const_Iterator
<T
>;
46 friend class ACE_Unbounded_Set_Ex
<T
, C
>;
47 friend class ACE_Unbounded_Set_Ex_Iterator
<T
, C
>;
48 friend class ACE_Unbounded_Set_Ex_Const_Iterator
<T
, C
>;
49 friend class ACE_Unbounded_Stack
<T
>;
50 friend class ACE_Unbounded_Stack_Iterator
<T
>;
52 /// This isn't necessary, but it keeps some compilers happy.
55 ACE_ALLOC_HOOK_DECLARE
;
58 ACE_Node (const T
&i
, ACE_Node
<T
, C
> *n
);
59 ACE_Node (ACE_Node
<T
, C
> *n
= 0, int = 0);
60 ACE_Node (const ACE_Node
<T
, C
> &n
);
63 void operator= (const ACE_Node
<T
, C
> &);
66 /// Pointer to next element in the list of ACE_Nodes.
67 ACE_Node
<T
, C
> *next_
;
69 /// Current value of the item in this node.
73 ACE_END_VERSIONED_NAMESPACE_DECL
75 #if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
76 #include "ace/Node.cpp"
77 #endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
79 #if defined (ACE_TEMPLATES_REQUIRE_PRAGMA)
80 #pragma implementation ("Node.cpp")
81 #endif /* ACE_TEMPLATES_REQUIRE_PRAGMA */
83 #include /**/ "ace/post.h"
84 #endif /* ACE_NODE_H */