#include <CDataStructures.h>
Inheritance diagram for CList::
Public Methods | |
CList (void) | |
~CList (void) | |
void | gotoHead (void) |
Sets the internal current item ptr to the head of the list. More... | |
void | gotoTail (void) |
Sets the internal current item ptr to the tail of the list. More... | |
void | next (void) |
Sets the internal current item ptr to the next item in the list. More... | |
void | prev (void) |
Sets the internal current item ptr to the previous item in the list. More... | |
CListItem * | getItem (void) |
Returns the internal pointer. More... | |
CListItem * | getItem (int number) |
Returns the item that is in position number, where the head is 1. More... | |
int | getLength (void) |
Returns the number of items in the list. More... | |
void | appendItem (CListItem *item) |
Appends the item to the tail of the list. More... | |
void | prependItem (CListItem *item) |
Prepends the item to the tail of the list. More... | |
void | insertItem (CListItem *item, int number) |
Insert item into list at position number. More... | |
void | deleteItem (CListItem *item) |
Delete given item from the list, where 1 is the head of the list. More... | |
bool | deleteItem (int number) |
Delete the item at position number, where 1 is the head the list. More... | |
Protected Attributes | |
int | m_length |
CListItem * | m_head |
CListItem * | m_tail |
CListItem * | m_current |
|
|
|
|
|
Appends the item to the tail of the list.
|
|
Delete the item at position number, where 1 is the head the list.
Reimplemented in CPlayList. |
|
Delete given item from the list, where 1 is the head of the list.
|
|
Returns the item that is in position number, where the head is 1. Returns NULL if the number is out of range for the list. Reimplemented in CMemoList, CAddressBook, CCalendar, CPlayList, and CUserPlayLists. |
|
Returns the internal pointer.
Reimplemented in CMemoList, CAddressBook, CCalendar, CPlayList, and CUserPlayLists. |
|
Returns the number of items in the list.
|
|
Sets the internal current item ptr to the head of the list.
|
|
Sets the internal current item ptr to the tail of the list.
|
|
Insert item into list at position number.
|
|
Sets the internal current item ptr to the next item in the list. If the current ptr is at the tail, it remains pointing to the tail |
|
Prepends the item to the tail of the list.
|
|
Sets the internal current item ptr to the previous item in the list. If the current ptr is at the head, it remains pointing to the head |
|
|
|
|
|
|
|
|