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

ListRep Class Template Reference

#include <List.h>

Inheritance diagram for ListRep::

RefCounter List of all members.

Public Methods

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

Private Types

typedef Cell<T> CellType

Private Methods

ListRep& operator= (const ListRep &)

Private Attributes

CellTyperoot
CellTypelast
int len

Friends

class  ListIteratorRep< T >

template<class T> class ListRep


Member Typedef Documentation

template<class T>
typedef Cell<T> ListRep<T>::CellType [private]
 

Definition at line 322 of file List.h.

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


Constructor & Destructor Documentation

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

Definition at line 54 of file List.h.

Referenced by clone().

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

Definition at line 56 of file List.h.

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

Definition at line 62 of file List.h.

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

Definition at line 78 of file List.h.


Member Function Documentation

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

Definition at line 87 of file List.h.

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

Definition at line 91 of file List.h.

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

Definition at line 93 of file List.h.

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

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

Definition at line 121 of file List.h.

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

Definition at line 140 of file List.h.

Referenced by removeElement().

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

Definition at line 174 of file List.h.

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

Definition at line 206 of file List.h.

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

Definition at line 223 of file List.h.

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

Definition at line 239 of file List.h.

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

Definition at line 249 of file List.h.

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

Definition at line 251 of file List.h.

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

Definition at line 261 of file List.h.

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

Definition at line 272 of file List.h.

Referenced by operator==().

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

Definition at line 299 of file List.h.

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

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

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


Friends And Related Function Documentation

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

Definition at line 324 of file List.h.


Member Data Documentation

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

Definition at line 328 of file List.h.

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

Definition at line 329 of file List.h.

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

Definition at line 331 of file List.h.


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