AlLinkItem
 
 
 

Base class for objects contained in an AlList.

Synopsis

#include <AlLinkItem.h>
class AlLinkItem
// All methods are protected.
AlLinkItem();
virtual	~AlLinkItem();
AlLinkItem*	next( void );
AlLinkItem*	prev( void );
void	append( AlLinkItem* );
void	remove();

Description

This is an abstract base class which classes will derive from so that the objects can be contained in AlList objects. All methods and variables of this class are protected or private.

AlLinkItem::~AlLinkItem()

Description

Destructor for AlLinkItem class.

void AlLinkItem::append( AlLinkItem* item )

Description

Inserts an AlLinkItem object after this object. The object is connected to this object's next object.

Arguments

< item - The object to be appended.

void AlLinkItem::remove()

Description

Removes this object from the list. Sets the pointers of its neighbors correctly, and its own to NULL.