LinkedList_t< T > Class Template Reference
Template linked list class. The template type T must inherit from LinkedListNode_t < class T >.
#include <UTLists.h>
List of all members.
Detailed Description
template<class T>
class LinkedList_t< T >
Definition at line 199 of file UTLists.h.
Constructor & Destructor Documentation
Constructor for an empty list.
Definition at line 1653 of file UTLists.h.
Member Function Documentation
Adds an item to the head of the list.
Definition at line 1663 of file UTLists.h.
Adds an item to the end of the list.
Definition at line 1686 of file UTLists.h.
template<class T>
T * LinkedList_t< T >::AddItemBefore |
( |
T * |
new_item, |
|
|
T * |
after_item | |
|
) |
| | [inline] |
Adds new_item to the list before after_item.
Definition at line 1709 of file UTLists.h.
template<class T>
T * LinkedList_t< T >::AddItemAfter |
( |
T * |
before_item, |
|
|
T * |
new_item | |
|
) |
| | [inline] |
Adds new_item to the list after before_item.
Definition at line 1732 of file UTLists.h.
Removes and returns the item at the head of the list.
Definition at line 1754 of file UTLists.h.
Removes and returns the item at the end of the list.
Definition at line 1779 of file UTLists.h.
Removes and returns the specified item.
Definition at line 1803 of file UTLists.h.
Returns the number of items in the list.
Definition at line 1848 of file UTLists.h.
Adds an item to the end of the list.
Definition at line 1872 of file UTLists.h.
Removes the specified item from the list.
Definition at line 1880 of file UTLists.h.
Sorts the linked list. LinkedListNode_t must implement an operator <, in the form of (inline being optional):
inline bool operator <(const T& other) const;
This performs a bubble sort, and thus is inherently slow and should only be performed on reasonably small linked lists.
Definition at line 1888 of file UTLists.h.
The documentation for this class was generated from the following file:
- D:/develop/svn/utlib/utlib/trunk/UT/src_UT/UTLists.h