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

Cell Class Template Reference

Cell is the basic component of externally linked lists. More...

#include <Cell.h>

List of all members.

Public Methods

 Cell ()
 Default constructor.

 Cell (const Cell &C)
 Copy constructor.

 Cell (const T &e, Cell *next=NULL)
 Creates a cell with content 'e' and next cell pointing to 'next'.

 ~Cell ()
void readContents (istream &istr)
 Read contents from the stream.

void writeContents (ostream &ostr) const
 Write contents to the stream.

getContents ()
 Returns contents of the cell.

void setContents (const T &t)
 Set contents of the cell.


Public Attributes

Cell* nextCell
 Pointer to the next cell.


Private Attributes

T* contents
 Contents of the cell.


Friends

ostream& operator (ostream &ostr, const Cell &C)
 IPC tools:.

istream& operator> (istream &istr, Cell &C)
 IPC tools:.


Detailed Description

template<class T> class Cell

Cell is the basic component of externally linked lists.

Definition at line 51 of file Cell.h.


Constructor & Destructor Documentation

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

Default constructor.

Definition at line 58 of file Cell.h.

template<class T>
Cell<T>::Cell<T> ( const Cell<T> & C ) [inline]
 

Copy constructor.

Definition at line 61 of file Cell.h.

template<class T>
Cell<T>::Cell<T> ( const T & e,
Cell<T> * next = NULL ) [inline]
 

Creates a cell with content 'e' and next cell pointing to 'next'.

Definition at line 69 of file Cell.h.

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

Definition at line 72 of file Cell.h.


Member Function Documentation

template<class T>
void Cell<T>::readContents ( istream & istr )
 

Read contents from the stream.

Referenced by operator>().

template<class T>
void Cell<T>::writeContents ( ostream & ostr ) const
 

Write contents to the stream.

template<class T>
T Cell<T>::getContents ( ) [inline]
 

Returns contents of the cell.

Definition at line 95 of file Cell.h.

Referenced by SetData::adjoinElement(), ListRep::agreement(), AssociationsRep::bind(), ListRep::concatenate(), SetData::contains(), ListRep::element(), ListRep::indexOf(), QuickAssociationsIteratorRep::key(), SetData::operator==(), ListRep::printOn(), SetData::rehash(), SetData::removeElement(), ListRep::removeElement(), ListRep::reverse(), AssociationsRep::seek(), ListRep::splice(), ListRep::sublist(), AssociationsRep::unbind(), AssociationsRep::val(), SetIteratorData::value(), QuickAssociationsIteratorRep::value(), and ListIteratorRep::value().

template<class T>
void Cell<T>::setContents ( const T & t ) [inline]
 

Set contents of the cell.

Definition at line 107 of file Cell.h.


Friends And Related Function Documentation

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

IPC tools:.

template<class T>
istream & operator>< T > ( istream & istr,
Cell<T> & C ) [friend]
 

IPC tools:.

Definition at line 41 of file Cell.h.


Member Data Documentation

template<class T>
Cell<T> * Cell<T>::nextCell<T>
 

Pointer to the next cell.

Definition at line 56 of file Cell.h.

template<class T>
T * Cell<T>::contents [private]
 

Contents of the cell.

Definition at line 114 of file Cell.h.


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