Head and Tail Access Methods
Method | Description | |
---|---|---|
GetHead | Returns the head element of the list (cannot be empty). | |
GetTail | Returns the tail element of the list (cannot be empty). |
Operations Methods
Method | Description | |
---|---|---|
RemoveHead | Removes the element from the head of the list. | |
RemoveTail | Removes the element from the tail of the list. | |
AddHead | Adds an element (or all the elements in another list) to the head of the list (makes a new head). | |
AddTail | Adds an element (or all the elements in another list) to the tail of the list (makes a new tail). |
Iteration Methods
Method | Description | |
---|---|---|
GetNext | Gets the next element for iterating. | |
GetPrev | Gets the previous element for iterating. |
Retrieval/Modification Methods
Method | Description |
---|---|
GetAt | Gets the element at a specified position. |
SetAt | Sets the element at a specified position. |