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

ListOf Class Template Reference

#include <List.h>

Inheritance diagram for ListOf::

ObjectOf QueueOf List of all members.

Public Types

typedef T ListElementType

Public Methods

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

Private Types

typedef Cell<T> CellType
typedef ListRep<T> Rep
typedef ObjectOf<RepR

Private Methods

 ListOf (Rep *p)

Friends

class  ListIteratorRep< T >
ListOf concatenate (const ListOf &L1, const ListOf &L2)
ostream& operator<< (ostream &ostr, const ListOf &l)
ostream& operator< (ostream &ostr, const ListOf &L)
istream& operator> (istream &istr, ListOf &L)

template<class T> class ListOf


Member Typedef Documentation

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

Definition at line 341 of file List.h.

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

Definition at line 470 of file List.h.

template<class T>
typedef ListRep<T> ListOf<T>::Rep [private]
 

Definition at line 471 of file List.h.

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

Definition at line 475 of file List.h.


Constructor & Destructor Documentation

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

Definition at line 343 of file List.h.

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

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

Definition at line 346 of file List.h.

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

Definition at line 476 of file List.h.


Member Function Documentation

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

Definition at line 351 of file List.h.

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

Definition at line 353 of file List.h.

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

Definition at line 355 of file List.h.

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

Definition at line 358 of file List.h.

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

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

Definition at line 363 of file List.h.

Referenced by operator[](), and QueueOf::pop().

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

Definition at line 367 of file List.h.

Referenced by WordData::WordData(), append(), QueueOf::isEmpty(), QueueOf::isntEmpty(), makeSetOf(), makeVectorOf(), QueueOf::popAll(), prefixOf(), and properPrefixOf().

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

Definition at line 370 of file List.h.

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

Definition at line 375 of file List.h.

Referenced by contains().

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

Definition at line 380 of file List.h.

Referenced by properPrefixOf().

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

Definition at line 385 of file List.h.

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

Definition at line 390 of file List.h.

Referenced by prefixOf().

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

Definition at line 397 of file List.h.

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

Definition at line 409 of file List.h.

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

Definition at line 412 of file List.h.

Referenced by SMObject::addDependent(), QuickAssociationsOf::keys(), AssociationsOf::keys(), and makeListOf().

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

Definition at line 415 of file List.h.

Referenced by RegularAuto::inv(), and makeListOf().

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

Definition at line 418 of file List.h.

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

Definition at line 422 of file List.h.

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

Definition at line 425 of file List.h.

Referenced by QueueOf::pop(), and QueueOf::popAll().

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

Definition at line 429 of file List.h.


Friends And Related Function Documentation

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

Definition at line 473 of file List.h.

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

Definition at line 404 of file List.h.

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

Definition at line 437 of file List.h.

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

Definition at line 455 of file List.h.

template<class T>
istream & operator> ( istream & istr,
ListOf<T> & L ) [friend]
 

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