Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

ContainingListItem Class Template Reference

#include <LinkedList.h>

List of all members.


Detailed Description

template<class ITEMTYPE>
class toolbox::ContainingListItem< ITEMTYPE >

A ContainingListItem is one item stored in the ContainingList.

It may not be added twice to the same list, nor be added to two different lists, since the pointering technique is designed for performance, not for functionality. If you require this, use the PointeredList and the PointeredListItem.

See also:
PointeredList

PointeredListItem

Author:
Thomas Jacob

Definition at line 329 of file LinkedList.h.

Public Member Functions

 ContainingListItem ()
 Creates a new ContainingListItem.

ITEMTYPE * GetNext () const
 Returns the next ContainingListItem in the list chain.

ITEMTYPE * GetPrev () const
 Returns the previous ContainingListItem in the list chain.

virtual ~ContainingListItem ()
 Destroys the ContainingListItem.


Private Attributes

ITEMTYPE * NextItem
 A pointer to the next ContainingListItem in the list chain.

ITEMTYPE * PrevItem
 A pointer to the previous ContainingListItem in the list chain.


Friends

class ContainingList< ITEMTYPE >


Constructor & Destructor Documentation

ContainingListItem  ) 
 

Creates a new ContainingListItem.

virtual ~ContainingListItem  )  [virtual]
 

Destroys the ContainingListItem.


Member Function Documentation

ITEMTYPE* GetNext  )  const [inline]
 

Returns the next ContainingListItem in the list chain.

Returns:
The next ContainingListItem.

ITEMTYPE* GetPrev  )  const [inline]
 

Returns the previous ContainingListItem in the list chain.

Returns:
The previous ContainingListItem.


Friends And Related Function Documentation

friend class ContainingList< ITEMTYPE > [friend]
 

Definition at line 331 of file LinkedList.h.


Member Data Documentation

ITEMTYPE* NextItem [private]
 

A pointer to the next ContainingListItem in the list chain.

Definition at line 346 of file LinkedList.h.

ITEMTYPE* PrevItem [private]
 

A pointer to the previous ContainingListItem in the list chain.

Definition at line 352 of file LinkedList.h.


The documentation for this class was generated from the following file:
Generated on Tue Oct 3 00:23:39 2006 for ToolBox by doxygen 1.3.6