#include <list.h>
Public Member Functions | |
List () | |
List (int n) | |
~List () | |
int | number () |
void | setFirst () |
void | setFirstLast () |
void | goFirst () |
void | goFirstNext () |
void | FirstNext () |
void | FirstPrev () |
bool | isFirstLast () |
void | goLastNext () |
void | goLast () |
void | goNext () |
void | goPrev () |
bool | isFirst () |
bool | isLast () |
void | LastNext () |
void | LastPrev () |
void | go (Pointer< Element > *p) |
Element * | First () |
Element * | Last () |
Element * | Next () |
Element * | getNext () |
Element * | Prev () |
Element * | getPrev () |
Element * | Current () |
Pointer< Element > * | getPointer () |
Pointer< Element > * | getFirstPointer () |
Pointer< Element > * | getLastPointer () |
int | init (int n) |
int | insert (Element *element) |
int | insert () |
int | append (Element *element) |
int | append () |
int | link (Pointer< Element > *p) |
void | unlink (Pointer< Element > *p) |
int | prepend (Element *element) |
bool | locate (Element *element) |
bool | locate (Pointer< Element > *pointer) |
void | moveAfterFirst () |
void | swapAfterFirst () |
void | moveBehindFirst () |
int | erase () |
bool | erase (Element *element) |
void | eraseall () |
bool | remove () |
void | cleanup () |
void | remove (Pointer< Element > *pointer) |
Private Attributes | |
int | nelements |
struct Pointer< Element > * | first |
struct Pointer< Element > * | last |
struct Pointer< Element > * | current |
Definition at line 24 of file list.h.
Definition at line 80 of file list.h.
References List< Element >::current, List< Element >::first, List< Element >::last, and List< Element >::nelements.
int List< Element >::append | ( | ) | [inline] |
Definition at line 159 of file list.h.
References Pointer< Element >::element.
Referenced by List< Element >::init().
int List< Element >::append | ( | Element * | element | ) | [inline] |
Definition at line 136 of file list.h.
References List< Element >::current, List< Element >::first, List< Element >::last, List< Element >::nelements, and Pointer< Element >::prev.
Referenced by Domain::Domain().
void List< Element >::cleanup | ( | ) | [inline] |
Definition at line 100 of file list.h.
References List< Element >::current, List< Element >::first, List< Element >::last, and List< Element >::nelements.
Referenced by List< Element >::~List().
Element* List< Element >::Current | ( | ) | [inline] |
bool List< Element >::erase | ( | Element * | element | ) | [inline] |
Definition at line 287 of file list.h.
References List< Element >::erase(), and List< Element >::locate().
int List< Element >::erase | ( | ) | [inline] |
Definition at line 235 of file list.h.
References List< Element >::current, Pointer< Element >::element, List< Element >::first, List< Element >::last, and List< Element >::nelements.
Referenced by List< Element >::erase(), and List< Element >::eraseall().
void List< Element >::eraseall | ( | ) | [inline] |
Definition at line 94 of file list.h.
References List< Element >::current, List< Element >::erase(), List< Element >::first, List< Element >::last, and List< Element >::nelements.
Element* List< Element >::First | ( | ) | [inline] |
void List< Element >::FirstNext | ( | ) | [inline] |
void List< Element >::FirstPrev | ( | ) | [inline] |
Element* List< Element >::getNext | ( | ) | [inline] |
Element* List< Element >::getPrev | ( | ) | [inline] |
void List< Element >::goFirst | ( | ) | [inline] |
void List< Element >::goFirstNext | ( | ) | [inline] |
void List< Element >::goLast | ( | ) | [inline] |
void List< Element >::goLastNext | ( | ) | [inline] |
void List< Element >::goNext | ( | ) | [inline] |
void List< Element >::goPrev | ( | ) | [inline] |
int List< Element >::init | ( | int | n | ) | [inline] |
Definition at line 106 of file list.h.
References List< Element >::append(), and List< Element >::nelements.
int List< Element >::insert | ( | ) | [inline] |
int List< Element >::insert | ( | Element * | element | ) | [inline] |
Definition at line 186 of file list.h.
References List< Element >::current, List< Element >::first, List< Element >::last, List< Element >::nelements, and Pointer< Element >::prev.
bool List< Element >::isFirst | ( | ) | [inline] |
bool List< Element >::isFirstLast | ( | ) | [inline] |
bool List< Element >::isLast | ( | ) | [inline] |
Element* List< Element >::Last | ( | ) | [inline] |
void List< Element >::LastNext | ( | ) | [inline] |
void List< Element >::LastPrev | ( | ) | [inline] |
Definition at line 165 of file list.h.
References List< Element >::current, List< Element >::first, List< Element >::last, List< Element >::nelements, and Pointer< Element >::prev.
Definition at line 303 of file list.h.
References List< Element >::current, and List< Element >::first.
bool List< Element >::locate | ( | Element * | element | ) | [inline] |
Definition at line 293 of file list.h.
References List< Element >::current, and List< Element >::first.
Referenced by List< Element >::erase(), and List< Element >::remove().
void List< Element >::moveAfterFirst | ( | ) | [inline] |
Definition at line 320 of file list.h.
References List< Element >::current, List< Element >::first, and Pointer< Element >::prev.
void List< Element >::moveBehindFirst | ( | ) | [inline] |
Definition at line 331 of file list.h.
References List< Element >::current, List< Element >::first, and Pointer< Element >::next.
Element* List< Element >::Next | ( | ) | [inline] |
int List< Element >::number | ( | ) | [inline] |
int List< Element >::prepend | ( | Element * | element | ) | [inline] |
Definition at line 113 of file list.h.
References List< Element >::current, List< Element >::first, List< Element >::last, List< Element >::nelements, and Pointer< Element >::next.
Element* List< Element >::Prev | ( | ) | [inline] |
DDD: slow but safe
DDD
Definition at line 272 of file list.h.
References List< Element >::current, and List< Element >::locate().
bool List< Element >::remove | ( | ) | [inline] |
Definition at line 215 of file list.h.
References List< Element >::current, List< Element >::first, List< Element >::last, and List< Element >::nelements.
void List< Element >::setFirst | ( | ) | [inline] |
void List< Element >::setFirstLast | ( | ) | [inline] |
void List< Element >::swapAfterFirst | ( | ) | [inline] |
Definition at line 313 of file list.h.
References List< Element >::current, and List< Element >::first.
Definition at line 257 of file list.h.
References List< Element >::current, List< Element >::first, List< Element >::last, List< Element >::nelements, Pointer< Element >::next, and Pointer< Element >::prev.
Definition at line 26 of file list.h.
Referenced by List< Element >::append(), List< Element >::cleanup(), List< Gas >::Current(), List< Element >::erase(), List< Element >::eraseall(), List< Gas >::getNext(), List< Gas >::getPointer(), List< Gas >::getPrev(), List< Gas >::go(), List< Gas >::goFirst(), List< Gas >::goFirstNext(), List< Gas >::goLast(), List< Gas >::goLastNext(), List< Gas >::goNext(), List< Gas >::goPrev(), List< Element >::insert(), List< Gas >::isFirst(), List< Gas >::isLast(), List< Element >::link(), List< Element >::List(), List< Element >::locate(), List< Element >::moveAfterFirst(), List< Element >::moveBehindFirst(), List< Gas >::Next(), List< Element >::prepend(), List< Gas >::Prev(), List< Element >::remove(), List< Element >::swapAfterFirst(), and List< Element >::unlink().
Definition at line 26 of file list.h.
Referenced by List< Element >::append(), List< Element >::cleanup(), List< Element >::erase(), List< Element >::eraseall(), List< Gas >::First(), List< Gas >::FirstNext(), List< Gas >::FirstPrev(), List< Gas >::getFirstPointer(), List< Gas >::goFirst(), List< Gas >::goFirstNext(), List< Element >::insert(), List< Gas >::isFirst(), List< Gas >::isFirstLast(), List< Element >::link(), List< Element >::List(), List< Element >::locate(), List< Element >::moveAfterFirst(), List< Element >::moveBehindFirst(), List< Element >::prepend(), List< Element >::remove(), List< Gas >::setFirst(), List< Gas >::setFirstLast(), List< Element >::swapAfterFirst(), and List< Element >::unlink().
Definition at line 26 of file list.h.
Referenced by List< Element >::append(), List< Element >::cleanup(), List< Element >::erase(), List< Element >::eraseall(), List< Gas >::getLastPointer(), List< Gas >::goLast(), List< Gas >::goLastNext(), List< Element >::insert(), List< Gas >::isFirstLast(), List< Gas >::isLast(), List< Gas >::Last(), List< Gas >::LastNext(), List< Gas >::LastPrev(), List< Element >::link(), List< Element >::List(), List< Element >::prepend(), List< Element >::remove(), List< Gas >::setFirst(), List< Gas >::setFirstLast(), and List< Element >::unlink().
Definition at line 25 of file list.h.
Referenced by List< Element >::append(), List< Element >::cleanup(), List< Element >::erase(), List< Element >::eraseall(), List< Element >::init(), List< Element >::insert(), List< Element >::link(), List< Element >::List(), List< Gas >::number(), List< Element >::prepend(), List< Element >::remove(), and List< Element >::unlink().