#include <List.H>
Collaboration diagram for List< T >:
Public Methods | |
List () | |
List (const List< T > &rhs) | |
List< T > & | operator= (const List< T > &rhs) |
~List () | |
void | prepend (const T &value) |
void | append (const T &value) |
void | add (const T &value) |
void | join (const List< T > &src) |
void | catenate (List< T > &src) |
void | clear () |
List< T > * | copy () const |
T & | firstElement () const |
T & | lastElement () const |
bool | includes (const T &value) const |
bool | operator== (const List< T > &rhs) const |
bool | operator!= (const List< T > &rhs) const |
bool | isEmpty () const |
bool | isNotEmpty () const |
int | length () const |
void | removeFirst () |
void | removeLast () |
const T & | operator[] (const ListIterator< T > &li) const |
T & | operator[] (const ListIterator< T > &li) |
void | remove (const T &value) |
void | remove (const List< T > &lst) |
void | remove (ListIterator< T > &lit) |
void | replace (ListIterator< T > &li, const T &val) |
void | addAfter (ListIterator< T > &lit, const T &val) |
void | addBefore (ListIterator< T > &lit, const T &val) |
ListIterator< T > | first () const |
ListIterator< T > | last () const |
Protected Methods | |
void | remove (ListLink< T > *ln) |
ListLink< T > * | addBefore (ListLink< T > *ln, const T &val) |
ListLink< T > * | addAfter (ListLink< T > *ln, const T &val) |
Protected Attributes | |
ListLink< T > * | head |
ListLink< T > * | tail |
Friends | |
class | ListIterator< T > |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|