AlList
 
 
 

Simple list class for AlLinkItem objects.

Synopsis

#include <AlList.h>
class AlList
AlList( AlLinkItem *item = (AlLinkItem*)0 );
virtual	~AlList();
AlLinkItem*	first( void ) const 
AlLinkItem*	last( void ) const 
void	append( AlLinkItem* );
int	remove( AlLinkItem* );
void	clear();

Description

This simple container class provides the ability to create and access a list of objects derived from the AlLinkItem class.

AlList::AlList( AlLinkItem *item )

Description

Constructor for AlList class.

Arguments

< item - the first object to be added to the list

AlList::~AlList()

Description

Destructor for AlList class.

AlLinkItem *AlList::first(void)

Description

Returns the first AlLinkItem in the list.

AlLinkItem *AlList::last(void)

Description

Returns the last AlLinkItem in the list.

void AlList::append( AlLinkItem *item )

Description

Adds an AlLinkItem object to the end of the list.

Arguments

< item - the object to be appended

int AlList::remove( AlLinkItem *item )

Description

Removes an AlLinkItem object from the AlList. Returns TRUE if the item was removed, FALSE if it was not (because it did not belong in this list).

Arguments

< item - the object to be appended

void AlList::clear()

Description

Clears the list as an empty list but does not free any of its members.