WT_Item_List Class Reference

#include <list.h>

Inheritance diagram for WT_Item_List:

Inheritance graph
[legend]
Collaboration diagram for WT_Item_List:

Collaboration graph
[legend]
List of all members.

Detailed Description

Abstract base class representing a linked list.

Definition at line 83 of file list.h.

Public Member Functions

void add_front (WT_Item *item)
 Inserts an item at the beginning of the list.
void add_tail (WT_Item *item)
 Appends an item to the end of the list.
WT_Integer32 count () const
 Returns the number of items in the list.
WT_Itemget_head () const
 Returns the first item in the list.
WT_Itemget_tail () const
 Returns the last item in the list.
WT_Boolean is_empty () const
 Returns WD_True if the list is empty.
void remove_all ()
 Removes all of the items in the list.

Protected Member Functions

 WT_Item_List ()
 Constructs a WT_Item_List object.
 WT_Item_List (WT_Item *first)
 Constructs a WT_Item_List object with the given initial item.
virtual ~WT_Item_List ()
 Destroys a WT_Item_List object.
void set_head (WT_Item *item)
 Replaces the first element. If the only element in the list, also sets it as the last element.
void set_tail (WT_Item *item)
 Replaces the last element. If the only element in the list, also sets it as the first element.


Constructor & Destructor Documentation

WT_Item_List::WT_Item_List WT_Item first  )  [inline, protected]
 

Constructs a WT_Item_List object with the given initial item.

Parameters:
first  The initial list item.

Definition at line 109 of file list.h.


The documentation for this class was generated from the following file:
Generated on Tue Jan 6 22:41:20 2009 for Autodesk DWF Whip 2D Toolkit by  doxygen 1.4.5