Next: Method of use
Up: DLinkList
Previous: Internal data structures
- int num(void) - return number of items in the list.
- int is_current(void) - returns a flag indicating if there
is a current item, or if the current item is 'undefined'.
- append(const T&) - appends the given item to the end of
the list. A copy of the item of type T is made.
- remove(void) - removes the current item (does nothing if
there is no current item).
- T current(void) - returns a copy of the current item.
- T item(int) - returns a copy of the Nth item.
- T get(void) - returns a copy of the current item, and
advances the current item pointer to the next item.
- next(void) - advance the current item pointer.
- prev(void) - move back the current item pointer.
- set(int) - make the Nth item the current item.
- int find(const T&) - change the current item to be the first
one which matches the argument, or does nothing if no items match. Returns
TRUE if a match was found.
- reset(void) - set the current item to be the first one.
- clear(void) - set the current item pointer to be NULL, i.e.
so that is_current() will return FALSE.
Justin Gullingsrud
Tue Apr 6 09:26:48 CDT 1999