Bookshelf Contents Previous Next Glossary Index Search

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.

Summary

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.

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.



Bookshelf Contents Previous Next Glossary Index Search

[email protected]
Copyright © 1998, Alias|Wavefront, a division of Silicon Graphics Limited. All rights reserved.