TBCI::List< T > Class Template Reference

#include <list.h>

Inheritance diagram for TBCI::List< T >:

Inheritance graph
[legend]

List of all members.

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 >


Detailed Description

template<typename T>
class TBCI::List< T >

Definition at line 289 of file list.h.


Member Typedef Documentation

template<typename T>
typedef ListIterator<T> TBCI::List< T >::iterator

Definition at line 306 of file list.h.

template<typename T>
typedef ListRIterator<T> TBCI::List< T >::riterator

Definition at line 308 of file list.h.


Constructor & Destructor Documentation

template<typename T>
TBCI::List< T >::List (  )  [inline]

Definition at line 310 of file list.h.

template<typename T>
TBCI::List< T >::List ( const List< T > &  l  )  [inline]

template<typename T>
TBCI::List< T >::~List (  )  [inline]

Definition at line 329 of file list.h.


Member Function Documentation

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

template<typename T>
ListItem< T > * TBCI::List< T >::app (  )  [inline, protected]

template<typename T>
List< T > & TBCI::List< T >::operator= ( const List< T > &  l  )  [inline]

template<typename T>
List< T > & TBCI::List< T >::alias ( const List< T > &  l  )  [inline]

template<typename T>
List< T >::iterator TBCI::List< T >::begin (  )  const [inline]

Definition at line 603 of file list.h.

References TBCI::List< T >::root.

template<typename T>
List< T >::iterator TBCI::List< T >::end (  )  const [inline]

Definition at line 606 of file list.h.

References TBCI::List< T >::count.

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

template<typename T>
List< T >::riterator TBCI::List< T >::rend (  )  const [inline]

Definition at line 612 of file list.h.

template<typename T>
T * TBCI::List< T >::append (  )  [inline]

template<typename T>
T * TBCI::List< T >::append ( T *  data  )  [inline]

Definition at line 442 of file list.h.

References TBCI::List< T >::append(), and T.

template<typename T>
void TBCI::List< T >::erase ( T *  rec  )  [inline]

template<typename T>
void TBCI::List< T >::deltree ( T *  delroot  )  [inline]

template<typename T>
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=().

template<typename T>
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().

template<typename T>
T * TBCI::List< T >::getlast (  )  const [inline]

Definition at line 621 of file list.h.

References TBCI::List< T >::last, and NULTP.

template<typename T>
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().

template<typename T>
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().

template<typename T>
T * TBCI::List< T >::getprev (  )  const [inline]

Definition at line 634 of file list.h.

References TBCI::List< T >::curr, and NULTP.

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

template<typename T>
T * TBCI::List< T >::setlast (  )  const [inline]

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

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

template<typename T>
T * TBCI::List< T >::inscurr (  )  [inline]

template<typename T>
T * TBCI::List< T >::inscurr ( T *  elem  )  [inline]

Definition at line 467 of file list.h.

References TBCI::List< T >::inscurr(), and T.

template<typename T>
T * TBCI::List< T >::delcurr (  )  [inline]

template<typename T>
T * TBCI::List< T >::detachcurr (  )  [inline]

template<typename T>
unsigned long TBCI::List< T >::getlength (  )  const [inline]

Definition at line 657 of file list.h.

References TBCI::List< T >::count.

template<typename T>
unsigned long TBCI::List< T >::size (  )  const [inline]

Definition at line 661 of file list.h.

References TBCI::List< T >::count.

template<typename T>
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().

template<typename T>
unsigned long TBCI::List< T >::getnr ( const T *  rec  )  const [inline]

template<typename T>
unsigned long TBCI::List< T >::getnr (  )  const [inline]

Definition at line 716 of file list.h.

References TBCI::List< T >::curr, and NULL.

template<typename T>
T * TBCI::List< T >::getbynr ( long  ctr  )  const [inline]

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

template<typename T>
T* TBCI::List< T >::setcurr ( const T *  rec  )  const [inline]

template<typename T>
void TBCI::List< T >::dumpList (  )  const [inline]


Friends And Related Function Documentation

template<typename T>
friend class ListIterator< T > [friend]

Definition at line 305 of file list.h.

template<typename T>
friend class ListRIterator< T > [friend]

Definition at line 307 of file list.h.


Member Data Documentation

template<typename T>
ListItem<T>* TBCI::List< T >::curr [mutable, protected]

template<typename T>
unsigned long TBCI::List< T >::count [protected]

template<typename T>
unsigned long TBCI::List< T >::currnr [mutable, protected]

template<typename T>
unsigned long TBCI::List< T >::vers [protected]

template<typename T>
ListItem<T>* TBCI::List< T >::root [protected]

template<typename T>
ListItem<T>* TBCI::List< T >::last [protected]

template<typename T>
ListItem<T>* TBCI::List< T >::detached [protected]


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

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