Changes to attempt to silence bcc64x
[ACE_TAO.git] / ACE / ace / Unbounded_Set.h
blob79fd80c76104d43640776be2b985eb66a1857fad
1 // -*- C++ -*-
3 //=============================================================================
4 /**
5 * @file Unbounded_Set.h
7 * @author Douglas C. Schmidt <d.schmidt@vanderbilt.edu>
8 */
9 //=============================================================================
11 #ifndef ACE_UNBOUNDED_SET_H
12 #define ACE_UNBOUNDED_SET_H
13 #include /**/ "ace/pre.h"
15 #include "ace/Unbounded_Set_Ex.h"
17 #if !defined (ACE_LACKS_PRAGMA_ONCE)
18 # pragma once
19 #endif /* ACE_LACKS_PRAGMA_ONCE */
21 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
23 class ACE_Allocator;
25 /**
26 * @struct ACE_Unbounded_Set_Default_Comparator
27 * @brief Simple comparator that evaluates equality using == operator.
29 template<typename T>
30 struct ACE_Unbounded_Set_Default_Comparator
32 bool operator() (const T&lhs, const T&rhs) const;
35 template<typename T>
36 class ACE_Unbounded_Set;
38 /**
39 * @class ACE_Unbounded_Set_Iterator
40 * @brief Compatibility wrapper for ACE_Unbounded_Set_Ex_Iterator.
42 template <typename T>
43 class ACE_Unbounded_Set_Iterator : public
44 ACE_Unbounded_Set_Ex_Iterator<T, ACE_Unbounded_Set_Default_Comparator<T> >
46 public:
47 typedef ACE_Unbounded_Set_Ex_Iterator<T, ACE_Unbounded_Set_Default_Comparator<T> > base_type;
49 ACE_Unbounded_Set_Iterator (ACE_Unbounded_Set<T> &s, bool end = false);
51 ACE_Unbounded_Set_Iterator (const base_type &s);
54 /**
55 * @class ACE_Unbounded_Set_Const_Iterator
56 * @brief Compatibility wrapper for ACE_Unbounded_Set_Ex_Const_Iterator.
58 template <class T>
59 class ACE_Unbounded_Set_Const_Iterator : public
60 ACE_Unbounded_Set_Ex_Const_Iterator<T, ACE_Unbounded_Set_Default_Comparator<T> >
62 public:
63 typedef ACE_Unbounded_Set_Ex_Const_Iterator<T, ACE_Unbounded_Set_Default_Comparator<T> > base_type;
65 ACE_Unbounded_Set_Const_Iterator (const ACE_Unbounded_Set<T> &s,
66 bool end = false);
68 ACE_Unbounded_Set_Const_Iterator (const base_type &s);
71 /**
72 * @class ACE_Unbounded_Set
73 * @brief Compatibility wrapper for ACE_Unbounded_Set_Ex.
75 template<typename T>
76 class ACE_Unbounded_Set : public
77 ACE_Unbounded_Set_Ex<T, ACE_Unbounded_Set_Default_Comparator<T> >
79 public:
80 ACE_Unbounded_Set (ACE_Allocator *alloc = nullptr);
83 ACE_END_VERSIONED_NAMESPACE_DECL
85 #if defined (__ACE_INLINE__)
86 #include "ace/Unbounded_Set.inl"
87 #endif /* __ACE_INLINE__ */
89 #include "ace/Unbounded_Set.cpp"
91 #include /**/ "ace/post.h"
92 #endif /* ACE_UNBOUNDED_SET_H */