#include <list.h>

Public Types | |
| typedef ListIterator< T > | iterator |
| typedef ListRIterator< T > | riterator |
Public Member Functions | |
| List () | |
| List (const List< T > &) | |
| List< T > & | operator= (const List< T > &) |
| List< T > & | alias (const List< T > &) |
| iterator | begin () const |
| iterator | end () const |
| riterator | rbegin () const |
| riterator | rend () const |
| T * | append () |
| T * | append (T *) |
| void | erase (T *) |
| void | deltree (T *) |
| Deletes List from item to end. | |
| void | deltree () |
| ~List () | |
| T * | getfirst () const |
| T * | getlast () const |
| T * | getcurr () const |
| T * | getnext () const |
| T * | getprev () const |
| T * | setfirst () const |
| T * | setlast () const |
| T * | setnext () const |
| T * | setprev () const |
| T * | inscurr () |
| T * | inscurr (T *) |
| T * | delcurr () |
| T * | detachcurr () |
| unsigned long | getlength () const |
| unsigned long | size () const |
| unsigned long | getcurrnr () const |
| Note that the numbers are 1-based. | |
| unsigned long | getnr (const T *) const |
| unsigned long | getnr () const |
| T * | getbynr (long) const |
| T * | setcurrnr (const unsigned long) const |
| T * | setcurr (const T *rec) const |
| void | dumpList () const |
Protected Member Functions | |
| void | checklast () |
| ListItem< T > * | app () |
Protected Attributes | |
| ListItem< T > * | curr |
| unsigned long | count |
| unsigned long | currnr |
| unsigned long | vers |
| ListItem< T > * | root |
| ListItem< T > * | last |
| ListItem< T > * | detached |
Friends | |
| class | ListIterator< T > |
| class | ListRIterator< T > |
Definition at line 289 of file list.h.
| typedef ListIterator<T> TBCI::List< T >::iterator |
| typedef ListRIterator<T> TBCI::List< T >::riterator |
| TBCI::List< T >::List | ( | ) | [inline] |
| TBCI::List< T >::List | ( | const List< T > & | l | ) | [inline] |
Definition at line 371 of file list.h.
References TBCI::List< T >::app(), TBCI::List< T >::count, TBCI::List< T >::curr, TBCI::ListItem< T >::data, TBCI::List< T >::detached, TBCI::List< T >::last, TBCI::ListItem< T >::next, NULL, TBCI::List< T >::root, and TBCI::List< T >::vers.
| TBCI::List< T >::~List | ( | ) | [inline] |
| void TBCI::List< T >::checklast | ( | ) | [inline, protected] |
Definition at line 362 of file list.h.
References TBCI::List< T >::count, TBCI::List< T >::last, and NULL.
| ListItem< T > * TBCI::List< T >::app | ( | ) | [inline, protected] |
Definition at line 417 of file list.h.
References TBCI::List< T >::count, TBCI::List< T >::curr, TBCI::List< T >::currnr, TBCI::List< T >::last, NULL, TBCI::List< T >::root, and TBCI::List< T >::vers.
Referenced by TBCI::List< T >::alias(), TBCI::List< T >::append(), TBCI::List< T >::List(), and TBCI::List< T >::operator=().
| List< T > & TBCI::List< T >::operator= | ( | const List< T > & | l | ) | [inline] |
Definition at line 385 of file list.h.
References TBCI::List< T >::app(), TBCI::List< T >::count, TBCI::List< T >::curr, TBCI::ListItem< T >::data, TBCI::List< T >::deltree(), TBCI::List< T >::detached, TBCI::List< T >::last, TBCI::ListItem< T >::next, NULL, TBCI::List< T >::root, and TBCI::List< T >::vers.
| List< T > & TBCI::List< T >::alias | ( | const List< T > & | l | ) | [inline] |
Definition at line 402 of file list.h.
References TBCI::List< T >::app(), TBCI::List< T >::count, TBCI::List< T >::curr, TBCI::ListItem< T >::data, TBCI::List< T >::deltree(), TBCI::List< T >::detached, TBCI::List< T >::last, TBCI::ListItem< T >::next, NULL, TBCI::List< T >::root, and TBCI::List< T >::vers.
| List< T >::iterator TBCI::List< T >::begin | ( | ) | const [inline] |
| List< T >::iterator TBCI::List< T >::end | ( | ) | const [inline] |
| List< T >::riterator TBCI::List< T >::rbegin | ( | ) | const [inline] |
Definition at line 609 of file list.h.
References TBCI::List< T >::count, and TBCI::List< T >::last.
| List< T >::riterator TBCI::List< T >::rend | ( | ) | const [inline] |
| T * TBCI::List< T >::append | ( | ) | [inline] |
Definition at line 436 of file list.h.
References TBCI::List< T >::app().
Referenced by TBCI::List< T >::append(), TBCI::List< T >::inscurr(), and TBCI::thread_reg_callback().
| T * TBCI::List< T >::append | ( | T * | data | ) | [inline] |
| void TBCI::List< T >::erase | ( | T * | rec | ) | [inline] |
Definition at line 669 of file list.h.
References TBCI::List< T >::count, TBCI::List< T >::curr, TBCI::List< T >::currnr, TBCI::ListItem< T >::data, TBCI::List< T >::last, TBCI::ListItem< T >::next, NULL, TBCI::ListItem< T >::prev, and TBCI::List< T >::root.
| void TBCI::List< T >::deltree | ( | T * | delroot | ) | [inline] |
Deletes List from item to end.
Definition at line 558 of file list.h.
References TBCI::List< T >::count, TBCI::List< T >::curr, TBCI::List< T >::currnr, TBCI::List< T >::last, NULL, TBCI::List< T >::root, STD__, and TBCI::List< T >::vers.
| void TBCI::List< T >::deltree | ( | ) | [inline] |
Definition at line 588 of file list.h.
References TBCI::List< T >::detached, NULL, and TBCI::List< T >::root.
Referenced by TBCI::List< T >::alias(), and TBCI::List< T >::operator=().
| T * TBCI::List< T >::getfirst | ( | ) | const [inline] |
Definition at line 617 of file list.h.
References NULTP, and TBCI::List< T >::root.
Referenced by TBCI::free_threads(), and TBCI::init_threads().
| T * TBCI::List< T >::getlast | ( | ) | const [inline] |
| T * TBCI::List< T >::getcurr | ( | ) | const [inline] |
Definition at line 625 of file list.h.
References TBCI::List< T >::curr, and NULTP.
Referenced by TBCI::ListIterator< T >::ListIterator().
| T * TBCI::List< T >::getnext | ( | ) | const [inline] |
Definition at line 629 of file list.h.
References TBCI::List< T >::curr, and NULTP.
Referenced by TBCI::free_threads(), and TBCI::init_threads().
| T * TBCI::List< T >::getprev | ( | ) | const [inline] |
| T * TBCI::List< T >::setfirst | ( | ) | const [inline] |
Definition at line 639 of file list.h.
References TBCI::List< T >::curr, TBCI::List< T >::currnr, NULTP, and TBCI::List< T >::root.
| T * TBCI::List< T >::setlast | ( | ) | const [inline] |
Definition at line 643 of file list.h.
References TBCI::List< T >::count, TBCI::List< T >::curr, TBCI::List< T >::currnr, TBCI::List< T >::last, and NULTP.
Referenced by TBCI::nsList< T, S >::sortin_r().
| T * TBCI::List< T >::setnext | ( | ) | const [inline] |
Definition at line 647 of file list.h.
References TBCI::List< T >::curr, TBCI::List< T >::currnr, and NULTP.
| T * TBCI::List< T >::setprev | ( | ) | const [inline] |
Definition at line 652 of file list.h.
References TBCI::List< T >::curr, TBCI::List< T >::currnr, and NULTP.
| T * TBCI::List< T >::inscurr | ( | ) | [inline] |
Definition at line 450 of file list.h.
References TBCI::List< T >::append(), TBCI::List< T >::count, TBCI::List< T >::curr, TBCI::ListItem< T >::next, NULL, TBCI::ListItem< T >::prev, TBCI::List< T >::root, and TBCI::List< T >::vers.
Referenced by TBCI::List< T >::inscurr().
| T * TBCI::List< T >::inscurr | ( | T * | elem | ) | [inline] |
| T * TBCI::List< T >::delcurr | ( | ) | [inline] |
Definition at line 475 of file list.h.
References TBCI::List< T >::count, TBCI::List< T >::curr, TBCI::List< T >::currnr, TBCI::List< T >::last, NULL, NULTP, TBCI::List< T >::root, and TBCI::List< T >::vers.
Referenced by TBCI::thread_dereg_callback().
| T * TBCI::List< T >::detachcurr | ( | ) | [inline] |
Definition at line 510 of file list.h.
References TBCI::List< T >::count, TBCI::List< T >::curr, TBCI::List< T >::currnr, TBCI::List< T >::detached, TBCI::List< T >::last, TBCI::ListItem< T >::next, NULL, NULTP, TBCI::List< T >::root, and TBCI::List< T >::vers.
| unsigned long TBCI::List< T >::getlength | ( | ) | const [inline] |
| unsigned long TBCI::List< T >::size | ( | ) | const [inline] |
| unsigned long TBCI::List< T >::getcurrnr | ( | ) | const [inline] |
Note that the numbers are 1-based.
Definition at line 665 of file list.h.
References TBCI::List< T >::currnr.
Referenced by TBCI::ListIterator< T >::ListIterator().
| unsigned long TBCI::List< T >::getnr | ( | const T * | rec | ) | const [inline] |
Definition at line 702 of file list.h.
References TBCI::ListItem< T >::data, TBCI::ListItem< T >::next, NULL, and TBCI::List< T >::root.
| unsigned long TBCI::List< T >::getnr | ( | ) | const [inline] |
| T * TBCI::List< T >::getbynr | ( | long | ctr | ) | const [inline] |
Definition at line 720 of file list.h.
References TBCI::List< T >::count, TBCI::ListItem< T >::data, TBCI::ListItem< T >::next, NULL, NULTP, and TBCI::List< T >::root.
| T * TBCI::List< T >::setcurrnr | ( | const unsigned long | nr | ) | const [inline] |
Definition at line 734 of file list.h.
References TBCI::List< T >::curr, TBCI::List< T >::currnr, NULTP, and TBCI::List< T >::root.
| T* TBCI::List< T >::setcurr | ( | const T * | rec | ) | const [inline] |
Definition at line 354 of file list.h.
References TBCI::ListIterator< T >::getnr().
Referenced by TBCI::ListIterator< T >::ListIterator(), and TBCI::thread_dereg_callback().
| void TBCI::List< T >::dumpList | ( | ) | const [inline] |
Definition at line 744 of file list.h.
References TBCI::List< T >::count, TBCI::List< T >::curr, TBCI::List< T >::currnr, TBCI::ListItem< T >::data, TBCI::List< T >::last, TBCI::ListItem< T >::next, TBCI::ListItem< T >::prev, and TBCI::List< T >::root.
friend class ListIterator< T > [friend] |
friend class ListRIterator< T > [friend] |
ListItem<T>* TBCI::List< T >::curr [mutable, protected] |
Definition at line 291 of file list.h.
Referenced by TBCI::List< T >::alias(), TBCI::List< T >::app(), TBCI::List< T >::delcurr(), TBCI::List< T >::deltree(), TBCI::List< T >::detachcurr(), TBCI::List< T >::dumpList(), TBCI::List< T >::erase(), TBCI::List< T >::getcurr(), TBCI::List< T >::getnext(), TBCI::List< T >::getnr(), TBCI::List< T >::getprev(), TBCI::List< T >::inscurr(), TBCI::List< T >::List(), TBCI::nsList< T, S >::move_window(), TBCI::List< T >::operator=(), TBCI::List< T >::setcurrnr(), TBCI::List< T >::setfirst(), TBCI::List< T >::setlast(), TBCI::List< T >::setnext(), and TBCI::List< T >::setprev().
unsigned long TBCI::List< T >::count [protected] |
Definition at line 292 of file list.h.
Referenced by TBCI::List< T >::alias(), TBCI::List< T >::app(), TBCI::List< T >::checklast(), TBCI::List< T >::delcurr(), TBCI::List< T >::deltree(), TBCI::List< T >::detachcurr(), TBCI::List< T >::dumpList(), TBCI::List< T >::end(), TBCI::List< T >::erase(), TBCI::List< T >::getbynr(), TBCI::List< T >::getlength(), TBCI::List< T >::inscurr(), TBCI::List< T >::List(), TBCI::List< T >::operator=(), TBCI::List< T >::rbegin(), TBCI::List< T >::setlast(), and TBCI::List< T >::size().
unsigned long TBCI::List< T >::currnr [mutable, protected] |
Definition at line 293 of file list.h.
Referenced by TBCI::List< T >::app(), TBCI::List< T >::delcurr(), TBCI::List< T >::deltree(), TBCI::List< T >::detachcurr(), TBCI::List< T >::dumpList(), TBCI::List< T >::erase(), TBCI::List< T >::getcurrnr(), TBCI::nsList< T, S >::move_window(), TBCI::List< T >::setcurrnr(), TBCI::List< T >::setfirst(), TBCI::List< T >::setlast(), TBCI::List< T >::setnext(), and TBCI::List< T >::setprev().
unsigned long TBCI::List< T >::vers [protected] |
Definition at line 294 of file list.h.
Referenced by TBCI::List< T >::alias(), TBCI::List< T >::app(), TBCI::List< T >::delcurr(), TBCI::List< T >::deltree(), TBCI::List< T >::detachcurr(), TBCI::List< T >::inscurr(), TBCI::List< T >::List(), and TBCI::List< T >::operator=().
ListItem<T>* TBCI::List< T >::root [protected] |
Definition at line 300 of file list.h.
Referenced by TBCI::List< T >::alias(), TBCI::List< T >::app(), TBCI::List< T >::begin(), TBCI::List< T >::delcurr(), TBCI::List< T >::deltree(), TBCI::List< T >::detachcurr(), TBCI::List< T >::dumpList(), TBCI::List< T >::erase(), TBCI::List< T >::getbynr(), TBCI::List< T >::getfirst(), TBCI::List< T >::getnr(), TBCI::List< T >::inscurr(), TBCI::List< T >::List(), TBCI::nsList< T, S >::move_window(), TBCI::List< T >::operator=(), TBCI::nsList< T, S >::qsort(), TBCI::List< T >::setcurrnr(), TBCI::List< T >::setfirst(), and TBCI::nsList< T, S >::sortin_r().
ListItem<T>* TBCI::List< T >::last [protected] |
Definition at line 301 of file list.h.
Referenced by TBCI::List< T >::alias(), TBCI::List< T >::app(), TBCI::List< T >::checklast(), TBCI::List< T >::delcurr(), TBCI::List< T >::deltree(), TBCI::List< T >::detachcurr(), TBCI::List< T >::dumpList(), TBCI::List< T >::erase(), TBCI::List< T >::getlast(), TBCI::List< T >::List(), TBCI::List< T >::operator=(), TBCI::nsList< T, S >::qsort(), TBCI::List< T >::rbegin(), TBCI::List< T >::setlast(), and TBCI::nsList< T, S >::sortin_r().
ListItem<T>* TBCI::List< T >::detached [protected] |
Definition at line 302 of file list.h.
Referenced by TBCI::List< T >::alias(), TBCI::List< T >::deltree(), TBCI::List< T >::detachcurr(), TBCI::List< T >::List(), and TBCI::List< T >::operator=().
1.5.6