#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()) |
| Wrong description, the new entry is not inserted AFTER, but BEFORE the iterator p. | |
| Pos | insert (const T &t, Pos p=Pos()) |
| The function inserts a new element into the list. | |
| Pos | insertAfter (T *t, Pos p=Pos()) |
| The function inserts a new element into the list. | |
| Pos | insertAfter (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 27 of file List.h.
|
|||||||||
|
Constructor of an empty list.
|
|
||||||||||
|
Copy constuctor.
|
|
|||||||||
|
Destructor. All list elements are destructed. |
|
|||||||||
|
The functions empties the list. All list elements are destructed. Definition at line 131 of file List.h. Referenced by List< ImageViewBase * >::operator=(), operator>>(), and List< ImageViewBase * >::~List(). |
|
||||||||||
|
The operator copies another list into this list. The previous entries in this list are destroyed.
|
|
|||||||||
|
The function returns an iterator pointing to the first element of the list.
Definition at line 177 of file List.h. Referenced by List< ImageViewBase * >::clear(), List< ImageViewBase * >::operator+=(), and List< ImageViewBase * >::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.
|
|
||||||||||
|
The operator implements read/write access to individual elements of the list.
|
|
||||||||||
|
The operator concatenates another list to this list.
|
|
||||||||||
|
The operator concatenates two lists.
|
|
|||||||||
|
The function returns the number of elements in the list.
|
|
||||||||||||||||
|
Wrong description, the new entry is not inserted AFTER, but BEFORE the iterator p.
Definition at line 236 of file List.h. Referenced by List< ImageViewBase * >::insert(), List< ImageViewBase * >::operator+=(), List< ImageViewBase * >::operator=(), and operator>>(). |
|
||||||||||||||||
|
The function inserts a new element into the list.
|
|
||||||||||||||||
|
The function inserts a new element into the list.
Definition at line 291 of file List.h. Referenced by List< ImageViewBase * >::insertAfter(). |
|
||||||||||||||||
|
The function inserts a new element into the list.
|
|
||||||||||
|
The function removes an element from the list. The element will be destructed.
Definition at line 340 of file List.h. Referenced by List< ImageViewBase * >::clear(). |
|
|||||
|
A pointer to the first list node.
|
|
|||||
|
A pointer to the last list node.
|
|
|||||
|
The number of entries in the list.
|
1.3.6