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

#include <dlistitem.h>

Inheritance diagram for ABA_DLISTITEM< Type >:

ABA_ABACUSROOT List of all members.

Public Member Functions

 ABA_DLISTITEM (const Type &elem, ABA_DLISTITEM< Type > *pred, ABA_DLISTITEM< Type > *succ)
Type elem () const
ABA_DLISTITEM< Type > * succ () const
ABA_DLISTITEM< Type > * pred () const

Private Attributes

Type elem_
ABA_DLISTITEM< Type > * pred_
ABA_DLISTITEM< Type > * succ_

Friends

class ABA_DLIST< Type >
ostream & operator<< (ostream &out, const ABA_DLISTITEM< Type > &item)

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.


Constructor & Destructor Documentation

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.


Member Function Documentation

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

Returns:
The element stored in the item.

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

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

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

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


Friends And Related Function Documentation

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

Definition at line 55 of file dlistitem.h.

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.


Member Data Documentation

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

Definition at line 102 of file dlistitem.h.

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

Definition at line 103 of file dlistitem.h.

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