#include <List.h>
Collaboration diagram for List< T >:

Public Member Functions | |
| void | clear () |
| The functions empties the list. | |
| List () | |
| Constructor of an empty list. | |
| List & | operator= (const List &l) |
| The operator copies another list into this list. | |
| List (const List &l) | |
| Copy constuctor. | |
| ~List () | |
| Destructor. | |
| Pos | getFirst () const |
| The function returns an iterator pointing to the first element of the list. | |
| Pos | getLast () const |
| The function returns an iterator pointing to the last element of the list. | |
| const T & | operator[] (Pos p) const |
| The operator implements read-only access to individual elements of the list. | |
| T & | operator[] (Pos p) |
| The operator implements read/write access to individual elements of the list. | |
| List< T > & | operator+= (const List< T > &l) |
| The operator concatenates another list to this list. | |
| List< T > | operator+ (const List< T > &l) const |
| The operator concatenates two lists. | |
| int | getSize () const |
| The function returns the number of elements in the list. | |
| Pos | insert (T *t, Pos p=Pos()) |
| The function inserts a new element into the list. | |
| Pos | insert (const T &t, Pos p=Pos()) |
| The function inserts a new element into the list. | |
| void | remove (Pos &p) |
| The function removes an element from the list. | |
Private Attributes | |
| Data * | first |
| A pointer to the first list node. | |
| Data * | last |
| A pointer to the last list node. | |
| int | size |
| The number of entries in the list. | |
Definition at line 22 of file List.h.
|
|||||||||
|
Constructor of an empty list.
Definition at line 136 of file List.h. References List< T >::first. |
|
||||||||||
|
Copy constuctor.
Definition at line 160 of file List.h. References List< T >::first. |
|
|||||||||
|
Destructor. All list elements are destructed. Definition at line 166 of file List.h. References List< T >::clear(). |
Here is the call graph for this function:

|
|||||||||
|
The functions empties the list. All list elements are destructed. Definition at line 126 of file List.h. References List< T >::getFirst(), and List< T >::remove(). Referenced by List< T >::operator=(), operator>>(), and List< T >::~List(). |
Here is the call graph for this function:

|
||||||||||
|
The operator copies another list into this list. The previous entries in this list are destroyed.
Definition at line 144 of file List.h. References List< T >::clear(), List< T >::getFirst(), and List< T >::insert(). |
Here is the call graph for this function:

|
|||||||||
|
The function returns an iterator pointing to the first element of the list.
Definition at line 172 of file List.h. References List< T >::first. Referenced by List< T >::clear(), List< T >::operator+=(), and List< T >::operator=(). |
|
|||||||||
|
The function returns an iterator pointing to the last element of the list.
|
|
||||||||||
|
The operator implements read-only access to individual elements of the list.
Definition at line 185 of file List.h. References List< T >::Data::data, and List< T >::Pos::entry. |
|
||||||||||
|
The operator implements read/write access to individual elements of the list.
Definition at line 192 of file List.h. References List< T >::Data::data, and List< T >::Pos::entry. |
|
||||||||||
|
The operator concatenates another list to this list.
Definition at line 199 of file List.h. References List< T >::getFirst(), and List< T >::insert(). |
Here is the call graph for this function:

|
||||||||||
|
The operator concatenates two lists.
|
|
|||||||||
|
The function returns the number of elements in the list.
|
|
||||||||||||||||
|
The function inserts a new element into the list.
Definition at line 228 of file List.h. References List< T >::Data::data, List< T >::Pos::entry, List< T >::first, List< T >::Data::next, and List< T >::Data::prev. Referenced by List< T >::insert(), List< T >::operator+=(), List< T >::operator=(), and operator>>(). |
|
||||||||||||||||
|
The function inserts a new element into the list.
Definition at line 270 of file List.h. References List< T >::insert(). |
Here is the call graph for this function:

|
||||||||||
|
The function removes an element from the list. The element will be destructed.
Definition at line 277 of file List.h. References List< T >::Data::data, List< T >::Pos::entry, List< T >::first, List< T >::Data::next, and List< T >::Data::prev. Referenced by List< T >::clear(). |
|
|||||
|
A pointer to the first list node.
Definition at line 35 of file List.h. Referenced by List< T >::getFirst(), List< T >::insert(), List< T >::List(), and List< T >::remove(). |
|
|||||
|
A pointer to the last list node.
|
|
|||||
|
The number of entries in the list.
|
1.3.6