Simple list class for AlLinkItem objects.
#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();
This simple container class provides the ability to create and access a list of objects derived from the AlLinkItem class.
Constructor for AlList class.
< item - the first object to be added to the list
Destructor for AlList class.
Returns the first AlLinkItem in the list.
Returns the last AlLinkItem in the list.
Adds an AlLinkItem object to the end of the list.
< item - the object to be appended
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).
< item - the object to be appended
Clears the list as an empty list but does not free any of its members.