#include <listitem.h>
Inheritance diagram for ABA_LISTITEM< Type >:
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) |
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.
ABA_LISTITEM< Type >::ABA_LISTITEM | ( | const Type & | elem, | |
ABA_LISTITEM< Type > * | succ | |||
) |
The constructor.
elem | A copy of elem becomes the element of the list item. | |
succ | A pointer to the successor of the item in the list. |
Type ABA_LISTITEM< Type >::elem | ( | ) | const |
ABA_LISTITEM<Type>* ABA_LISTITEM< Type >::succ | ( | ) | const |
friend class ABA_LIST< Type > [friend] |
Definition at line 56 of file listitem.h.
ostream& operator<< | ( | ostream & | out, | |
const ABA_LISTITEM< Type > & | item | |||
) | [friend] |
The output operator.
out | The output stream. | |
item | The list item being output. |
Type ABA_LISTITEM< Type >::elem_ [private] |
Definition at line 95 of file listitem.h.
ABA_LISTITEM<Type>* ABA_LISTITEM< Type >::succ_ [private] |
Definition at line 96 of file listitem.h.