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

EasyList Class Template Reference

#include <EasyList.h>

List of all members.

Public Methods

 EasyList ()
 EasyList (const T &t)
 EasyList (const EasyList &lr)
 ~EasyList ()
bool isFirst () const
bool isLast () const
bool gotEnd () const
EasyCell<T>* getLast () const
EasyCell<T>* getFirst () const
EasyCell<T>* getCurrent () const
const T& value () const
bool setCurrent (EasyCell< T > *setpoint)
void setContent (T setcont)
bool setToFirst ()
bool setToLast ()
bool isEmpty () const
bool next ()
void prepend (const T &)
void append (const T &)
void insertAfter (const T &)
void insertBefore (const T &)
bool deleteFirst ()
bool deleteCurrent ()
bool deleteAfter ()
bool setCurrentToIndex (int i)
bool search (const T &,EasyCell< T > **) const
bool deleteLast ()
bool operator== (const EasyList &lr) const

Private Methods

void printOn (ostream &ostr=cout) const

Private Attributes

EasyCell<T>* root
EasyCell<T>* last
EasyCell<T>* current
bool end_was_red

Friends

ostream& operator<< (ostream &ostr, const EasyList &ls)
ostream& operator< (ostream &ostr, const EasyList &cr)
istream& operator> (istream &istr, EasyList &cr)

template<class T> class EasyList


Constructor & Destructor Documentation

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

Definition at line 60 of file EasyList.h.

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

Definition at line 62 of file EasyList.h.

template<class T>
EasyList<T>::EasyList<T> ( const EasyList<T> & lr )
 

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

Definition at line 69 of file EasyList.h.


Member Function Documentation

template<class T>
bool EasyList<T>::isFirst ( ) const [inline]
 

Definition at line 80 of file EasyList.h.

template<class T>
bool EasyList<T>::isLast ( ) const [inline]
 

Definition at line 87 of file EasyList.h.

template<class T>
bool EasyList<T>::gotEnd ( ) const [inline]
 

Definition at line 94 of file EasyList.h.

template<class T>
EasyCell< T > * EasyList<T>::getLast<T> ( ) const [inline]
 

Definition at line 101 of file EasyList.h.

template<class T>
EasyCell< T > * EasyList<T>::getFirst<T> ( ) const [inline]
 

Definition at line 108 of file EasyList.h.

template<class T>
EasyCell<T>* EasyList<T>::getCurrent ( ) const
 

Referenced by setContent(), and value().

template<class T>
const T & EasyList<T>::value ( ) const [inline]
 

Definition at line 120 of file EasyList.h.

template<class T>
bool EasyList<T>::setCurrent ( EasyCell< T > * setpoint )
 

Referenced by setToFirst(), and setToLast().

template<class T>
void EasyList<T>::setContent ( T setcont ) [inline]
 

Definition at line 127 of file EasyList.h.

template<class T>
bool EasyList<T>::setToFirst ( ) [inline]
 

Definition at line 130 of file EasyList.h.

template<class T>
bool EasyList<T>::setToLast ( ) [inline]
 

Definition at line 134 of file EasyList.h.

template<class T>
bool EasyList<T>::isEmpty ( ) const [inline]
 

Definition at line 138 of file EasyList.h.

Referenced by CosetTable::complete().

template<class T>
bool EasyList<T>::next ( )
 

template<class T>
void EasyList<T>::prepend ( const T & )
 

template<class T>
void EasyList<T>::append ( const T & )
 

template<class T>
void EasyList<T>::insertAfter ( const T & )
 

template<class T>
void EasyList<T>::insertBefore ( const T & )
 

template<class T>
bool EasyList<T>::deleteFirst ( )
 

template<class T>
bool EasyList<T>::deleteCurrent ( )
 

template<class T>
bool EasyList<T>::deleteAfter ( )
 

template<class T>
bool EasyList<T>::setCurrentToIndex ( int i )
 

template<class T>
bool EasyList<T>::search ( const T &,
EasyCell< T > ** ) const
 

template<class T>
bool EasyList<T>::deleteLast ( )
 

template<class T>
bool EasyList<T>::operator== ( const EasyList<T> & lr ) const
 

template<class T>
void EasyList<T>::printOn ( ostream & ostr = cout ) const [private]
 

Referenced by operator<<().


Friends And Related Function Documentation

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

Definition at line 188 of file EasyList.h.

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

Definition at line 194 of file EasyList.h.

template<class T>
istream & operator> ( istream & istr,
EasyList<T> & cr ) [friend]
 

Definition at line 200 of file EasyList.h.


Member Data Documentation

template<class T>
EasyCell<T>* EasyList<T>::root [private]
 

Definition at line 210 of file EasyList.h.

template<class T>
EasyCell<T>* EasyList<T>::last [private]
 

Definition at line 212 of file EasyList.h.

template<class T>
EasyCell<T>* EasyList<T>::current [private]
 

Definition at line 214 of file EasyList.h.

template<class T>
bool EasyList<T>::end_was_red [private]
 

Definition at line 216 of file EasyList.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