TBCI::nsList< T, S > Class Template Reference

A numerically sortable List. More...

#include <list.h>

Inheritance diagram for TBCI::nsList< T, S >:

Inheritance graph
[legend]
Collaboration diagram for TBCI::nsList< T, S >:

Collaboration graph
[legend]

List of all members.

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


Detailed Description

template<typename T, typename S = double>
class TBCI::nsList< T, S >

A numerically sortable List.

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.


Constructor & Destructor Documentation

template<typename T, typename S = double>
TBCI::nsList< T, S >::nsList (  )  [inline]

Definition at line 779 of file list.h.


Member Function Documentation

template<typename T, typename S>
void TBCI::nsList< T, S >::quick ( ListItem< T > *  left,
ListItem< T > *  right 
) [inline, protected]

template<typename T, typename S>
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.

template<class T, class S>
T * TBCI::nsList< T, S >::sortin_r ( T &  dat,
bool  frst = false 
) [inline]

template<typename T, typename S>
long TBCI::nsList< T, S >::move_window ( const S &  val  )  const [inline]


Member Data Documentation

template<typename T, typename S = double>
bool TBCI::nsList< T, S >::dir [protected]


The documentation for this class was generated from the following file:

Generated on Wed Nov 20 09:29:35 2013 for TBCI Numerical high perf. C++ Library by  doxygen 1.5.6