class ElementList



This class provides for a list of information regarding elements, stored in ElementNodes. This class is included in MINDPrefs.



Constructors

ElementList()
Creates an empty list.
ElementList( ElementList* )
Copy constructor - performs a deep copy on the passed list.

Functionality

public ElementNode* add( int, char*, DCM_TAG )
Adds a new node to the end of the list and returns a pointer to it.
public void remove( ElementNode* )
Removes the specified node from the list.
public ElementNode* list()
Returns the head of the list.

Private Members

ElementNode* head
Pointer to the first node of the list.
ElementNode* tail
Pointer to the last node of the list.
int numElements
Number of elements in the list.