3 //=============================================================================
5 * @file Unbounded_Set.h
7 * @author Douglas C. Schmidt <d.schmidt@vanderbilt.edu>
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)
19 #endif /* ACE_LACKS_PRAGMA_ONCE */
21 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
26 * @struct ACE_Unbounded_Set_Default_Comparator
27 * @brief Simple comparator that evaluates equality using == operator.
30 struct ACE_Unbounded_Set_Default_Comparator
32 bool operator() (const T
&lhs
, const T
&rhs
) const;
36 class ACE_Unbounded_Set
;
39 * @class ACE_Unbounded_Set_Iterator
40 * @brief Compatibility wrapper for ACE_Unbounded_Set_Ex_Iterator.
43 class ACE_Unbounded_Set_Iterator
: public
44 ACE_Unbounded_Set_Ex_Iterator
<T
, ACE_Unbounded_Set_Default_Comparator
<T
> >
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
);
55 * @class ACE_Unbounded_Set_Const_Iterator
56 * @brief Compatibility wrapper for ACE_Unbounded_Set_Ex_Const_Iterator.
59 class ACE_Unbounded_Set_Const_Iterator
: public
60 ACE_Unbounded_Set_Ex_Const_Iterator
<T
, ACE_Unbounded_Set_Default_Comparator
<T
> >
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
,
68 ACE_Unbounded_Set_Const_Iterator (const base_type
&s
);
72 * @class ACE_Unbounded_Set
73 * @brief Compatibility wrapper for ACE_Unbounded_Set_Ex.
76 class ACE_Unbounded_Set
: public
77 ACE_Unbounded_Set_Ex
<T
, ACE_Unbounded_Set_Default_Comparator
<T
> >
80 ACE_Unbounded_Set (ACE_Allocator
*alloc
= 0);
83 ACE_END_VERSIONED_NAMESPACE_DECL
85 #if defined (__ACE_INLINE__)
86 #include "ace/Unbounded_Set.inl"
87 #endif /* __ACE_INLINE__ */
89 #if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
90 #include "ace/Unbounded_Set.cpp"
91 #endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
93 #if defined (ACE_TEMPLATES_REQUIRE_PRAGMA)
94 #pragma implementation ("Unbounded_Set.cpp")
95 #endif /* ACE_TEMPLATES_REQUIRE_PRAGMA */
97 #include /**/ "ace/post.h"
98 #endif /* ACE_UNBOUNDED_SET_H */