Fixed typos
[ACE_TAO.git] / ACE / ace / Node.h
blobaecc69d83d1a2e616b2acaa2e49eb71b9b050aa4
1 // -*- C++ -*-
3 //=============================================================================
4 /**
5 * @file Node.h
7 * @author Doug Schmidt
8 */
9 //=============================================================================
12 #ifndef ACE_NODE_H
13 #define ACE_NODE_H
14 #include /**/ "ace/pre.h"
16 #include /**/ "ace/config-all.h"
18 #if !defined (ACE_LACKS_PRAGMA_ONCE)
19 # 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;
34 /**
35 * @class ACE_Node
37 * @brief Implementation element in a Queue, Set, and Stack.
39 template<class T, class C = void>
40 class ACE_Node
42 public:
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.
53 ~ACE_Node (void);
55 ACE_ALLOC_HOOK_DECLARE;
57 private:
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);
61 private:
62 /// Not possible
63 void operator= (const ACE_Node<T, C> &);
65 private:
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.
70 T item_;
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 */