6.56 ABA_LISTITEM< Type > Class Template Reference

We call the basic building block of a linked list an { item\/} that is implemented by the class ABA_LISTITEM.

#include <listitem.h>

Inheritance diagram for ABA_LISTITEM< Type >::


PIC


Public Member Functions

Private Attributes

Friends

6.56.1 Detailed Description

template<class Type> class ABA_LISTITEM< Type >

We call the basic building block of a linked list an { item\/} that is implemented by the class ABA_LISTITEM.

Parameters:

Type
elem_ The element of the item.
ABA_LISTITEM<Type>
*succ_ A pointer to the successor of the item in the list. The successor of the last item is 0.

Definition at line 55 of file listitem.h.

6.56.2 Constructor & Destructor Documentation

6.56.2.1 template<class Type> ABA_LISTITEM< Type >::ABA_LISTITEM (const Type & elem, ABA_LISTITEM< Type > * succ)

The constructor.

Parameters:

elem
A copy of elem becomes the element of the list item.
succ
A pointer to the successor of the item in the list.

6.56.3 Member Function Documentation

6.56.3.1 template<class Type> Type ABA_LISTITEM< Type >::elem () const

Returns:

The element of the item.

6.56.3.2 template<class Type> ABA_LISTITEM<Type>*ABA_LISTITEM< Type >::succ () const

Returns:

The successor of the item in the list.

6.56.4 Friends And Related Function Documentation

6.56.4.1 template<class Type> friend class ABA_LIST< Type > [friend]

Definition at line 56 of file listitem.h.

6.56.4.2 template<class Type> ostream& operator<< (ostream & out, const ABA_LISTITEM< Type > & item) [friend]

The output operator.

Returns:

A reference to the output stream.

Parameters:

out
The output stream.
item
The list item being output.

6.56.5 Member Data Documentation

6.56.5.1 template<class Type> Type ABA_LISTITEM< Type >::elem_ [private]

Definition at line 95 of file listitem.h.

6.56.5.2 template<class Type> ABA_LISTITEM<Type>*ABA_LISTITEM< Type >::succ_ [private]

Definition at line 96 of file listitem.h.

The documentation for this class was generated from the following file: