ACE_Fixed_Set< T, ACE_SIZE > Class Template ReferenceImplement a simple unordered set of {T} with maximum {ACE_SIZE}. More...
Collaboration diagram for ACE_Fixed_Set< T, ACE_SIZE >:
Detailed Descriptiontemplate<class T, size_t ACE_SIZE>
Implement a simple unordered set of {T} with maximum {ACE_SIZE}.
|
typedef ACE_Fixed_Set_Iterator<T, ACE_SIZE> ACE_Fixed_Set< T, ACE_SIZE >::ITERATOR |
typedef ACE_Fixed_Set_Const_Iterator<T, ACE_SIZE> ACE_Fixed_Set< T, ACE_SIZE >::CONST_ITERATOR |
ACE_Fixed_Set< T, ACE_SIZE >::ACE_Fixed_Set | ( | void | ) | [inline] |
Default Constructor.
Creates an empy set
ACE_Fixed_Set< T, ACE_SIZE >::ACE_Fixed_Set | ( | const ACE_Fixed_Set< T, ACE_SIZE > & | fs | ) | [inline] |
Copy constructor.
Initializes a set to be a copy of the set parameter.
ACE_Fixed_Set< T, ACE_SIZE >::~ACE_Fixed_Set | ( | void | ) | [inline] |
Destructor.
Destroys a set.
void ACE_Fixed_Set< T, ACE_SIZE >::operator= | ( | const ACE_Fixed_Set< T, ACE_SIZE > & | fs | ) | [inline] |
Assignment operator.
Deep copy of one set to another.
ACE_INLINE int ACE_Fixed_Set< T, ACE_SIZE >::is_empty | ( | void | ) | const [inline] |
Returns 1 if the container is empty, otherwise returns 0.
Performs constant time check to determine if a set is empty.
ACE_INLINE int ACE_Fixed_Set< T, ACE_SIZE >::is_full | ( | void | ) | const [inline] |
Returns 1 if the container is full, otherwise returns 0.
Performs a constant time check to see if the set is full.
int ACE_Fixed_Set< T, ACE_SIZE >::insert | ( | const T & | new_item | ) | [inline] |
Linear time insertion of an item unique to the set.
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_Fixed_Set< T, ACE_SIZE >::remove | ( | const T & | item | ) | [inline] |
Linear time removal operation of an item.
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. Removal doesn't reclaim memory for the item.
int ACE_Fixed_Set< T, ACE_SIZE >::find | ( | const T & | item | ) | const [inline] |
Finds if item occurs in the set. Returns 0 if finds, else -1.
Performs a linear find operation for the specified item.
size_t ACE_Fixed_Set< T, ACE_SIZE >::size | ( | void | ) | const [inline] |
Size of the set.
Returns the current size of the set.
void ACE_Fixed_Set< T, ACE_SIZE >::dump | ( | void | ) | const [inline] |
Dump the state of an object.
friend class ACE_Fixed_Set_Iterator_Base< T, ACE_SIZE > [friend] |
friend class ACE_Fixed_Set_Iterator< T, ACE_SIZE > [friend] |
friend class ACE_Fixed_Set_Const_Iterator< T, ACE_SIZE > [friend] |
ACE_Fixed_Set< T, ACE_SIZE >::ACE_ALLOC_HOOK_DECLARE |
Declare the dynamic allocation hooks.
T ACE_Fixed_Set< T, ACE_SIZE >::item_ |
Item in the set.
int ACE_Fixed_Set< T, ACE_SIZE >::is_free_ |
Keeps track of whether this item is in use or not.
struct { ... } ACE_Fixed_Set< T, ACE_SIZE >::search_structure_[ACE_SIZE] [private] |
size_t ACE_Fixed_Set< T, ACE_SIZE >::cur_size_ [private] |
Current size of the set.
size_t ACE_Fixed_Set< T, ACE_SIZE >::max_size_ [private] |
Maximum size of the set.