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. More...

#include <listitem.h>

Inheritance diagram for ABA_LISTITEM< Type >:

ABA_ABACUSROOT List of all members.

Public Member Functions

 ABA_LISTITEM (const Type &elem, ABA_LISTITEM< Type > *succ)
Type elem () const
ABA_LISTITEM< Type > * succ () const

Private Attributes

Type elem_
ABA_LISTITEM< Type > * succ_

Friends

class ABA_LIST< Type >
ostream & operator<< (ostream &out, const ABA_LISTITEM< Type > &item)

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.


Constructor & Destructor Documentation

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.


Member Function Documentation

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

Returns:
The element of the item.

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

Returns:
The successor of the item in the list.


Friends And Related Function Documentation

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

Definition at line 56 of file listitem.h.

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.


Member Data Documentation

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

Definition at line 95 of file listitem.h.

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:
Generated on Tue Aug 14 18:09:57 2007 for ABACUS by  doxygen 1.5.1