ACE_Unbounded_Set_Ex< T, C > Class Template ReferenceImplement a simple unordered set of <T> of unbounded size. More...
Inheritance diagram for ACE_Unbounded_Set_Ex< T, C >:
Collaboration diagram for ACE_Unbounded_Set_Ex< T, C >:
Detailed Descriptiontemplate<class T, class C>
Implement a simple unordered set of <T> of unbounded size.
|
typedef ACE_Unbounded_Set_Ex_Iterator<T, C> ACE_Unbounded_Set_Ex< T, C >::ITERATOR |
typedef ACE_Unbounded_Set_Ex_Iterator<T, C> ACE_Unbounded_Set_Ex< T, C >::iterator |
typedef ACE_Unbounded_Set_Ex_Const_Iterator<T, C> ACE_Unbounded_Set_Ex< T, C >::CONST_ITERATOR |
typedef ACE_Unbounded_Set_Ex_Const_Iterator<T, C> ACE_Unbounded_Set_Ex< T, C >::const_iterator |
typedef C ACE_Unbounded_Set_Ex< T, C >::COMP |
typedef ACE_Node<T, C> ACE_Unbounded_Set_Ex< T, C >::NODE |
ACE_Unbounded_Set_Ex< T, C >::ACE_Unbounded_Set_Ex | ( | ACE_Allocator * | alloc = 0 |
) | [inline] |
Constructor. Use user specified allocation strategy if specified. Initialize an empty set using the allocation strategy of the user if provided.
ACE_Unbounded_Set_Ex< T, C >::ACE_Unbounded_Set_Ex | ( | const C & | comparator, | |
ACE_Allocator * | alloc = 0 | |||
) | [inline] |
Initialize an empty set using the allocation strategy of the user if provided, and a given comparator functor.
ACE_Unbounded_Set_Ex< T, C >::ACE_Unbounded_Set_Ex | ( | const ACE_Unbounded_Set_Ex< T, C > & | us | ) | [inline] |
Copy constructor.
Initialize this set to be an exact copy of the set provided.
ACE_Unbounded_Set_Ex< T, C >::~ACE_Unbounded_Set_Ex | ( | void | ) | [inline] |
Destructor.
Destroy the nodes of the set.
ACE_Unbounded_Set_Ex< T, C > & ACE_Unbounded_Set_Ex< T, C >::operator= | ( | const ACE_Unbounded_Set_Ex< T, C > & | us | ) | [inline] |
Assignment operator.
Perform a deep copy of the rhs into the lhs.
ACE_BEGIN_VERSIONED_NAMESPACE_DECL ACE_INLINE bool ACE_Unbounded_Set_Ex< T, C >::is_empty | ( | void | ) | const [inline] |
Returns true
if the container is empty, otherwise returns false
.
Constant time is_empty check.
ACE_INLINE bool ACE_Unbounded_Set_Ex< T, C >::is_full | ( | void | ) | const [inline] |
Returns false
.
Always returns false
since the set can never fill up.
int ACE_Unbounded_Set_Ex< T, C >::insert | ( | const T & | new_item | ) | [inline] |
Linear insertion of an item.
Insert new_item into the set (doesn't allow duplicates). Returns -1 if failures occur, 1 if item is already present, else 0.
int ACE_Unbounded_Set_Ex< T, C >::insert_tail | ( | const T & | item | ) | [inline] |
Insert item at the tail of the set (doesn't check for duplicates). Constant time insert at the end of the set.
int ACE_Unbounded_Set_Ex< T, C >::remove | ( | const T & | item | ) | [inline] |
Linear remove operation.
Remove first occurrence of item from the set. Returns 0 if it removes the item, -1 if it can't find the item, and -1 if a failure occurs.
int ACE_Unbounded_Set_Ex< T, C >::find | ( | const T & | item | ) | const [inline] |
Finds if item occurs in the set. Returns 0 if find succeeds, else -1. Performs a linear find operation.
ACE_BEGIN_VERSIONED_NAMESPACE_DECL size_t ACE_Unbounded_Set_Ex< T, C >::size | ( | void | ) | const [inline] |
Size of the set.
Access the size of the set.
void ACE_Unbounded_Set_Ex< T, C >::dump | ( | void | ) | const [inline] |
Dump the state of an object.
void ACE_Unbounded_Set_Ex< T, C >::reset | ( | void | ) | [inline] |
Reset the ACE_Unbounded_Set_Ex to be empty.
Delete the nodes of the set.
ACE_Unbounded_Set_Ex< T, C >::iterator ACE_Unbounded_Set_Ex< T, C >::begin | ( | void | ) | [inline] |
ACE_Unbounded_Set_Ex< T, C >::iterator ACE_Unbounded_Set_Ex< T, C >::end | ( | void | ) | [inline] |
ACE_Unbounded_Set_Ex< T, C >::const_iterator ACE_Unbounded_Set_Ex< T, C >::begin | ( | void | ) | const [inline] |
ACE_Unbounded_Set_Ex< T, C >::const_iterator ACE_Unbounded_Set_Ex< T, C >::end | ( | void | ) | const [inline] |
void ACE_Unbounded_Set_Ex< T, C >::delete_nodes | ( | void | ) | [inline, private] |
Delete all the nodes in the Set.
void ACE_Unbounded_Set_Ex< T, C >::copy_nodes | ( | const ACE_Unbounded_Set_Ex< T, C > & | us | ) | [inline, private] |
Copy nodes into this set.
friend class ACE_Unbounded_Set_Ex_Iterator< T, C > [friend] |
friend class ACE_Unbounded_Set_Ex_Const_Iterator< T, C > [friend] |
ACE_Unbounded_Set_Ex< T, C >::ACE_ALLOC_HOOK_DECLARE |
Declare the dynamic allocation hooks.
NODE* ACE_Unbounded_Set_Ex< T, C >::head_ [private] |
Head of the linked list of Nodes.
size_t ACE_Unbounded_Set_Ex< T, C >::cur_size_ [private] |
Current size of the set.
ACE_Allocator* ACE_Unbounded_Set_Ex< T, C >::allocator_ [private] |
Allocation strategy of the set.
COMP ACE_Unbounded_Set_Ex< T, C >::comp_ [private] |
Comparator to be used.