/usr/include/ace/Node.h is in libace-dev 6.3.3+dfsg-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 | // -*- C++ -*-
//=============================================================================
/**
* @file Node.h
*
* @author Doug Schmidt
*/
//=============================================================================
#ifndef ACE_NODE_H
#define ACE_NODE_H
#include /**/ "ace/pre.h"
#include /**/ "ace/config-all.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
ACE_BEGIN_VERSIONED_NAMESPACE_DECL
// Forward declarations.
template <class T, class C> class ACE_Unbounded_Set_Ex;
template <class T, class C> class ACE_Unbounded_Set_Ex_Iterator;
template <class T, class C> class ACE_Unbounded_Set_Ex_Const_Iterator;
template <class T> class ACE_Unbounded_Queue;
template <class T> class ACE_Unbounded_Queue_Iterator;
template <class T> class ACE_Unbounded_Queue_Const_Iterator;
template <class T> class ACE_Unbounded_Stack;
template <class T> class ACE_Unbounded_Stack_Iterator;
/**
* @class ACE_Node
*
* @brief Implementation element in a Queue, Set, and Stack.
*/
template<class T, class C = void>
class ACE_Node
{
public:
friend class ACE_Unbounded_Queue<T>;
friend class ACE_Unbounded_Queue_Iterator<T>;
friend class ACE_Unbounded_Queue_Const_Iterator<T>;
friend class ACE_Unbounded_Set_Ex<T, C>;
friend class ACE_Unbounded_Set_Ex_Iterator<T, C>;
friend class ACE_Unbounded_Set_Ex_Const_Iterator<T, C>;
friend class ACE_Unbounded_Stack<T>;
friend class ACE_Unbounded_Stack_Iterator<T>;
/// This isn't necessary, but it keeps some compilers happy.
~ACE_Node (void);
private:
// = Initialization methods
ACE_Node (const T &i, ACE_Node<T, C> *n);
ACE_Node (ACE_Node<T, C> *n = 0, int = 0);
ACE_Node (const ACE_Node<T, C> &n);
private:
/// Not possible
void operator= (const ACE_Node<T, C> &);
private:
/// Pointer to next element in the list of ACE_Nodes.
ACE_Node<T, C> *next_;
/// Current value of the item in this node.
T item_;
};
ACE_END_VERSIONED_NAMESPACE_DECL
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
#include "ace/Node.cpp"
#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
#if defined (ACE_TEMPLATES_REQUIRE_PRAGMA)
#pragma implementation ("Node.cpp")
#endif /* ACE_TEMPLATES_REQUIRE_PRAGMA */
#include /**/ "ace/post.h"
#endif /* ACE_NODE_H */
|