Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

DListRep Class Template Reference

#include <DList.h>

Inheritance diagram for DListRep::

RefCounter List of all members.

Public Methods

 DListRep ()
 DListRep (const T &t)
 DListRep (const DListRep &lr)
 ~DListRep ()
Bool operator== (const DListRep &lr) const
DListRep* clone ()
void insert (const T &t, int i)
void insert (const DListRep *LR, int i)
void removeElement (const T &t)
void removeElementOfIndex (int i)
void splice (const DListRep *rp, int i, int j)
DListRep* sublist (int i, int j) const
DListRep* concatenate (const DListRep *rp) const
DListRep* reverse () const
int length () const
element (int i) const
int indexOf (const T &t) const
int agreement (const DListRep *rp, int start) const
void printOn (ostream &ostr) const
void write (ostream &ostr) const
void read (istream &istr)

Private Types

typedef DCell<T> CellType

Private Methods

DListRep& operator= (const DListRep &)

Private Attributes

CellTyperoot
CellTypelast
int len

Friends

class  DListIteratorRep< T >

template<class T> class DListRep


Member Typedef Documentation

template<class T>
typedef DCell<T> DListRep<T>::CellType [private]
 

Definition at line 381 of file DList.h.

Referenced by DListRep(), insert(), and splice().


Constructor & Destructor Documentation

template<class T>
DListRep<T>::DListRep<T> ( ) [inline]
 

Definition at line 59 of file DList.h.

Referenced by clone().

template<class T>
DListRep<T>::DListRep<T> ( const T & t ) [inline]
 

Definition at line 61 of file DList.h.

template<class T>
DListRep<T>::DListRep<T> ( const DListRep<T> & lr ) [inline]
 

Definition at line 67 of file DList.h.

template<class T>
DListRep<T>::~DListRep<T> ( ) [inline]
 

Definition at line 85 of file DList.h.


Member Function Documentation

template<class T>
Bool DListRep<T>::operator== ( const DListRep<T> & lr ) const [inline]
 

Definition at line 94 of file DList.h.

template<class T>
DListRep<T> * DListRep<T>::clone ( ) [inline]
 

Definition at line 98 of file DList.h.

template<class T>
void DListRep<T>::insert ( const T & t,
int i ) [inline]
 

Definition at line 100 of file DList.h.

Referenced by concatenate(), reverse(), and sublist().

template<class T>
void DListRep<T>::insert ( const DListRep<T> * LR,
int i ) [inline]
 

Definition at line 131 of file DList.h.

template<class T>
void DListRep<T>::removeElement ( const T & t ) [inline]
 

Definition at line 169 of file DList.h.

template<class T>
void DListRep<T>::removeElementOfIndex ( int i ) [inline]
 

Definition at line 188 of file DList.h.

Referenced by removeElement().

template<class T>
void DListRep<T>::splice ( const DListRep<T> * rp,
int i,
int j ) [inline]
 

Definition at line 224 of file DList.h.

template<class T>
DListRep<T> * DListRep<T>::sublist ( int i,
int j ) const [inline]
 

Definition at line 263 of file DList.h.

template<class T>
DListRep<T> * DListRep<T>::concatenate ( const DListRep<T> * rp ) const [inline]
 

Definition at line 280 of file DList.h.

template<class T>
DListRep<T> * DListRep<T>::reverse ( ) const [inline]
 

Definition at line 296 of file DList.h.

template<class T>
int DListRep<T>::length ( ) const [inline]
 

Definition at line 306 of file DList.h.

template<class T>
T DListRep<T>::element ( int i ) const [inline]
 

Definition at line 308 of file DList.h.

template<class T>
int DListRep<T>::indexOf ( const T & t ) const [inline]
 

Definition at line 318 of file DList.h.

template<class T>
int DListRep<T>::agreement ( const DListRep<T> * rp,
int start ) const [inline]
 

Definition at line 329 of file DList.h.

Referenced by operator==().

template<class T>
void DListRep<T>::printOn ( ostream & ostr ) const [inline]
 

Definition at line 356 of file DList.h.

template<class T>
void DListRep<T>::write ( ostream & ostr ) const
 

template<class T>
void DListRep<T>::read ( istream & istr )
 

template<class T>
DListRep<T>& DListRep<T>::operator= ( const DListRep<T> & ) [private]
 


Friends And Related Function Documentation

template<class T>
friend class DListIteratorRep< T > [friend]
 

Definition at line 383 of file DList.h.


Member Data Documentation

template<class T>
CellType* DListRep<T>::root [private]
 

Definition at line 387 of file DList.h.

template<class T>
CellType* DListRep<T>::last [private]
 

Definition at line 388 of file DList.h.

template<class T>
int DListRep<T>::len [private]
 

Definition at line 390 of file DList.h.


The documentation for this class was generated from the following file:
Generated at Tue Jun 19 09:49:51 2001 for Magnus Classes by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001