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

DListOf Class Template Reference

#include <DList.h>

Inheritance diagram for DListOf::

ObjectOf List of all members.

Public Types

typedef T ListElementType

Public Methods

 DListOf ()
 DListOf (const T &t)
Bool operator== (const DListOf &L) const
Bool operator!= (const DListOf &L) const
operator[] (int i) const
Bool equalTo (const DListOf &L) const
element (int i) const
int length () const
Bool contains (const T &t) const
int indexOf (const T &t) const
Bool prefixOf (const DListOf &L) const
Bool properPrefixOf (const DListOf &L) const
int agreement (const DListOf &L, int start=0) const
DListOf sublist (int i, int j) const
DListOf reverse () const
void append (const T &t)
void prepend (const T &t)
void insert (const T &t, int i)
void insert (const DListOf &L, int i)
void removeElement (const T &t)
void removeElementOfIndex (int i)
void splice (const DListOf &L, int i, int j)

Private Types

typedef DCell<T> CellType
typedef DListRep<T> Rep
typedef ObjectOf<RepR

Private Methods

 DListOf (Rep *p)

Friends

class  DListIteratorRep< T >
DListOf concatenate (const DListOf &L1, const DListOf &L2)
ostream& operator<< (ostream &ostr, const DListOf &l)
ostream& operator< (ostream &ostr, const DListOf &DL)
istream& operator> (istream &istr, DListOf &DL)

template<class T> class DListOf


Member Typedef Documentation

template<class T>
typedef T DListOf<T>::ListElementType
 

Definition at line 401 of file DList.h.

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

Definition at line 539 of file DList.h.

template<class T>
typedef DListRep<T> DListOf<T>::Rep [private]
 

Definition at line 540 of file DList.h.

template<class T>
typedef ObjectOf<Rep> DListOf<T>::R [private]
 

Definition at line 544 of file DList.h.


Constructor & Destructor Documentation

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

Definition at line 403 of file DList.h.

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

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

Definition at line 406 of file DList.h.

template<class T>
DListOf<T>::DListOf<T> ( Rep * p ) [inline, private]
 

Definition at line 545 of file DList.h.


Member Function Documentation

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

Definition at line 411 of file DList.h.

template<class T>
Bool DListOf<T>::operator!= ( const DListOf<T> & L ) const [inline]
 

Definition at line 413 of file DList.h.

template<class T>
T DListOf<T>::operator[] ( int i ) const [inline]
 

Definition at line 415 of file DList.h.

template<class T>
Bool DListOf<T>::equalTo ( const DListOf<T> & L ) const [inline]
 

Definition at line 418 of file DList.h.

Referenced by operator!=(), and operator==().

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

Definition at line 423 of file DList.h.

Referenced by operator[]().

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

Definition at line 427 of file DList.h.

Referenced by append(), prefixOf(), and properPrefixOf().

template<class T>
Bool DListOf<T>::contains ( const T & t ) const [inline]
 

Definition at line 430 of file DList.h.

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

Definition at line 435 of file DList.h.

Referenced by contains().

template<class T>
Bool DListOf<T>::prefixOf ( const DListOf<T> & L ) const [inline]
 

Definition at line 440 of file DList.h.

Referenced by properPrefixOf().

template<class T>
Bool DListOf<T>::properPrefixOf ( const DListOf<T> & L ) const [inline]
 

Definition at line 445 of file DList.h.

template<class T>
int DListOf<T>::agreement ( const DListOf<T> & L,
int start = 0 ) const [inline]
 

Definition at line 450 of file DList.h.

Referenced by prefixOf().

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

Definition at line 457 of file DList.h.

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

Definition at line 469 of file DList.h.

template<class T>
void DListOf<T>::append ( const T & t ) [inline]
 

Definition at line 472 of file DList.h.

template<class T>
void DListOf<T>::prepend ( const T & t ) [inline]
 

Definition at line 475 of file DList.h.

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

Definition at line 478 of file DList.h.

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

Definition at line 482 of file DList.h.

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

Definition at line 487 of file DList.h.

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

Definition at line 490 of file DList.h.

template<class T>
void DListOf<T>::splice ( const DListOf<T> & L,
int i,
int j ) [inline]
 

Definition at line 494 of file DList.h.


Friends And Related Function Documentation

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

Definition at line 542 of file DList.h.

template<class T>
DListOf<T> concatenate ( const DListOf<T> & L1,
const DListOf<T> & L2 ) [friend]
 

Definition at line 464 of file DList.h.

template<class T>
ostream & operator<< ( ostream & ostr,
const DListOf<T> & l ) [friend]
 

Definition at line 506 of file DList.h.

template<class T>
ostream & operator< ( ostream & ostr,
const DListOf<T> & DL ) [friend]
 

Definition at line 525 of file DList.h.

template<class T>
istream & operator> ( istream & istr,
DListOf<T> & DL ) [friend]
 

Definition at line 531 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