#include <list.h>


Public Member Functions | |
| nsList () | |
| void | qsort (bool=false) |
| Quicksort is really quick: sorts 1 000 000 records (int) in less than 50 secs on a 486DX4/100 under Linux (32 MB Ram). | |
| T * | sortin_r (T &, bool=false) |
| long | move_window (const S &val) const |
Protected Member Functions | |
| void | quick (ListItem< T > *, ListItem< T > *) |
Protected Attributes | |
| bool | dir |
ListItems have to def. a member function getval() which returns the value which is used to sort
Definition at line 768 of file list.h.
| TBCI::nsList< T, S >::nsList | ( | ) | [inline] |
| void TBCI::nsList< T, S >::quick | ( | ListItem< T > * | left, | |
| ListItem< T > * | right | |||
| ) | [inline, protected] |
Definition at line 786 of file list.h.
References TBCI::ListItem< T >::data, TBCI::nsList< T, S >::dir, TBCI::ListItem< T >::next, TBCI::ListItem< T >::prev, and T.
Referenced by TBCI::nsList< T, S >::qsort().
| void TBCI::nsList< T, S >::qsort | ( | bool | desc = false |
) | [inline] |
Quicksort is really quick: sorts 1 000 000 records (int) in less than 50 secs on a 486DX4/100 under Linux (32 MB Ram).
Definition at line 850 of file list.h.
References TBCI::nsList< T, S >::dir, TBCI::List< T >::last, NULL, TBCI::nsList< T, S >::quick(), and TBCI::List< T >::root.
| T * TBCI::nsList< T, S >::sortin_r | ( | T & | dat, | |
| bool | frst = false | |||
| ) | [inline] |
Definition at line 859 of file list.h.
References TBCI::ListItem< T >::data, TBCI::nsList< T, S >::dir, TBCI::List< T >::last, TBCI::ListItem< T >::next, NULL, TBCI::ListItem< T >::prev, TBCI::List< T >::root, TBCI::List< T >::setlast(), and STD__.
| long TBCI::nsList< T, S >::move_window | ( | const S & | val | ) | const [inline] |
Definition at line 918 of file list.h.
References TBCI::List< T >::curr, TBCI::List< T >::currnr, TBCI::ListItem< T >::data, TBCI::nsList< T, S >::dir, TBCI::ListItem< T >::next, TBCI::ListItem< T >::prev, and TBCI::List< T >::root.
bool TBCI::nsList< T, S >::dir [protected] |
Definition at line 776 of file list.h.
Referenced by TBCI::nsList< T, S >::move_window(), TBCI::nsList< T, S >::qsort(), TBCI::nsList< T, S >::quick(), and TBCI::nsList< T, S >::sortin_r().
1.5.6