ACE_Intrusive_List< T > Class Template ReferenceImplement an intrusive double linked list. More...
Collaboration diagram for ACE_Intrusive_List< T >:
Detailed Descriptiontemplate<class T>
Implement an intrusive double linked list.
|
ACE_BEGIN_VERSIONED_NAMESPACE_DECL ACE_Intrusive_List< T >::ACE_Intrusive_List | ( | void | ) | [inline] |
Constructor. Use user specified allocation strategy if specified.
ACE_Intrusive_List< T >::~ACE_Intrusive_List | ( | void | ) | [inline] |
Destructor.
ACE_Intrusive_List< T >::ACE_Intrusive_List | ( | const ACE_Intrusive_List< T > & | ) | [private] |
ACE_BEGIN_VERSIONED_NAMESPACE_DECL ACE_INLINE int ACE_Intrusive_List< T >::is_empty | ( | void | ) | const [inline] |
Returns 1 if the container is empty, otherwise returns 0.
ACE_INLINE int ACE_Intrusive_List< T >::empty | ( | void | ) | const [inline] |
Returns 1 if the container is empty, otherwise returns 0.
void ACE_Intrusive_List< T >::push_front | ( | T * | node | ) | [inline] |
Insert an element at the beginning of the list.
void ACE_Intrusive_List< T >::push_back | ( | T * | node | ) | [inline] |
Insert an element at the end of the list.
T * ACE_Intrusive_List< T >::pop_front | ( | void | ) | [inline] |
Remove the element at the beginning of the list.
T * ACE_Intrusive_List< T >::pop_back | ( | void | ) | [inline] |
Remove the element at the end of the list.
ACE_INLINE T * ACE_Intrusive_List< T >::head | ( | void | ) | const [inline] |
Get the element at the head of the queue.
ACE_INLINE T * ACE_Intrusive_List< T >::tail | ( | void | ) | const [inline] |
Get the element at the tail of the queue.
void ACE_Intrusive_List< T >::remove | ( | T * | node | ) | [inline] |
Remove a element from the list.
Verify that the element is still in the list before removing it.
ACE_INLINE void ACE_Intrusive_List< T >::swap | ( | ACE_Intrusive_List< T > & | rhs | ) | [inline] |
Swap two lists.
void ACE_Intrusive_List< T >::unsafe_remove | ( | T * | node | ) | [inline] |
Remove a element from the list without checking.
No attempts are performed to check if T* really belongs to the list. The effects of removing an invalid element are unspecified
ACE_Intrusive_List<T>& ACE_Intrusive_List< T >::operator= | ( | const ACE_Intrusive_List< T > & | ) | [private] |
T* ACE_Intrusive_List< T >::head_ [private] |
Head of the list.
T* ACE_Intrusive_List< T >::tail_ [private] |
Tail of the list.