6.58 ABA_DLISTITEM< Type > Class Template Reference

A ABA_DLISTITEM stores a copy of the inserted element and has pointers to its predecessor and its successor.

#include <dlistitem.h>

Inheritance diagram for ABA_DLISTITEM< Type >::


PIC


Public Member Functions

Private Attributes

Friends

6.58.1 Detailed Description

template<class Type> class ABA_DLISTITEM< Type >

A ABA_DLISTITEM stores a copy of the inserted element and has pointers to its predecessor and its successor.

Parameters:

Type
elem_ The element stored in the item.
ABA_DLISTITEM<Type>
*pred_ A pointer to predecessor of the item in the list.
ABA_DLISTITEM<Type>
*succ_ A pointer to the successor of the item in the list.

Definition at line 54 of file dlistitem.h.

6.58.2 Constructor & Destructor Documentation

6.58.2.1 template<class Type> ABA_DLISTITEM< Type >::ABA_DLISTITEM (const Type & elem, ABA_DLISTITEM< Type > * pred, ABA_DLISTITEM< Type > * succ)

The constructor.

Parameters:

elem
The element of the item.
pred
A pointer to the previous item in the list.
succ
A pointer to the next item in the list.

6.58.3 Member Function Documentation

6.58.3.1 template<class Type> Type ABA_DLISTITEM< Type >::elem () const

Returns:

The element stored in the item.

6.58.3.2 template<class Type> ABA_DLISTITEM<Type>*ABA_DLISTITEM< Type >::succ () const

Returns:

A pointer to the successor of the item in the list.

6.58.3.3 template<class Type> ABA_DLISTITEM<Type>*ABA_DLISTITEM< Type >::pred () const

Returns:

A pointer to the predecessor of the item in the list.

6.58.4 Friends And Related Function Documentation

6.58.4.1 template<class Type> friend class ABA_DLIST< Type > [friend]

Definition at line 55 of file dlistitem.h.

6.58.4.2 template<class Type> ostream& operator<< (ostream & out, const ABA_DLISTITEM< 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.58.5 Member Data Documentation

6.58.5.1 template<class Type> Type ABA_DLISTITEM< Type >::elem_ [private]

Definition at line 102 of file dlistitem.h.

6.58.5.2 template<class Type> ABA_DLISTITEM<Type>*ABA_DLISTITEM< Type >::pred_ [private]

Definition at line 103 of file dlistitem.h.

6.58.5.3 template<class Type> ABA_DLISTITEM<Type>*ABA_DLISTITEM< Type >::succ_ [private]

Definition at line 104 of file dlistitem.h.

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