Bookshelf Contents Previous Next Glossary Index Search

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.

Summary

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 neighbours correctly, and its own to NULL.



Bookshelf Contents Previous Next Glossary Index Search

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