Main Page | User's guide | Class Hierarchy | Class List | File List | Class Members

Multivac::Cell< T > Class Template Reference

Cell of a double linked list. More...

#include <list.hxx>

List of all members.

Public Types

typedef T value_type
typedef T * pointer
typedef const T * const_pointer
typedef T & reference
typedef const T & const_reference

Public Member Functions

 Cell () throw ()
 Default constructor.

 Cell (T &X, Cell< T > *previous, Cell< T > *next) throw ()
 Main constructor.

 ~Cell () throw ()
 Destructor.

const_reference GetElement () const
 Returns the element.

reference GetElement ()
 Returns the element.

void GetElement (T &X) const
 Returns the element.

void SetElement (T &X)
 Modifies the cell element.

Cell< T > * GetPrevious () const
 Returns the pointer to the previous cell.

void SetPrevious (Cell< T > *previous)
 Sets the pointer to the previous cell.

Cell< T > * GetNext () const
 Returns the pointer to the next cell.

void SetNext (Cell< T > *next)
 Sets the pointer to the next cell.


Protected Attributes

X_
 Element.

Cell< T > * previous_
 Pointer to the previous element.

Cell< T > * next_
 Pointer to the next element.


Friends

class List< T >


Detailed Description

template<class T>
class Multivac::Cell< T >

Cell of a double linked list.


Constructor & Destructor Documentation

template<class T>
Multivac::Cell< T >::Cell T &  X,
Cell< T > *  previous,
Cell< T > *  next
throw () [inline]
 

Main constructor.

Parameters:
X element.
previous pointer to the previous cell.
next pointer to the next cell.


Member Function Documentation

template<class T>
void Multivac::Cell< T >::GetElement T &  X  )  const [inline]
 

Returns the element.

Parameters:
A reference to the object in which the cell element has to be copied.

template<class T>
Cell< T >::reference Multivac::Cell< T >::GetElement  )  [inline]
 

Returns the element.

Returns:
A reference to the element.

template<class T>
Cell< T >::const_reference Multivac::Cell< T >::GetElement  )  const [inline]
 

Returns the element.

Returns:
A constant reference to the element.

template<class T>
Cell< T > * Multivac::Cell< T >::GetNext  )  const [inline]
 

Returns the pointer to the next cell.

Returns:
the pointer to the next cell.

template<class T>
Cell< T > * Multivac::Cell< T >::GetPrevious  )  const [inline]
 

Returns the pointer to the previous cell.

Returns:
the pointer to the previous cell.

template<class T>
void Multivac::Cell< T >::SetElement T &  X  )  [inline]
 

Modifies the cell element.

Parameters:
X the new value of the cell element.

template<class T>
void Multivac::Cell< T >::SetNext Cell< T > *  next  )  [inline]
 

Sets the pointer to the next cell.

Parameters:
previous the pointer to the next cell.

template<class T>
void Multivac::Cell< T >::SetPrevious Cell< T > *  previous  )  [inline]
 

Sets the pointer to the previous cell.

Parameters:
previous the pointer to the previous cell.


The documentation for this class was generated from the following files:
Generated on Mon Apr 19 01:59:14 2004 for Multivac by doxygen 1.3.6-20040222