Elm
2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
|
#include <>>
Public Member Functions | |
DLList (void) | |
DLList (DLList &list) | |
DLNode * | first (void) const |
DLNode * | last (void) const |
bool | isEmpty (void) const |
DLNode * | head (void) const |
DLNode * | tail (void) const |
int | count (void) const |
void | addFirst (DLNode *node) |
void | addLast (DLNode *node) |
void | removeFirst (void) |
void | removeLast (void) |
This class implements a double-linked list using node inherited from the user.
References elm::io::list().
Add an item at the first position.
item | Item to add. |
Add a node as the first node in the list.
node | Node to add. |
References DLNode::insertAfter().
Referenced by BiDiList< T, E, A >::addFirst(), and Temp::Temp().
Add an item at the last position.
item | Item to add. |
Add a node as the last node in the list.
node | Node to add. |
References DLNode::insertBefore().
Referenced by BiDiList< T, E, A >::addLast().
|
inline |
Count the items in the list.
Count the number of nodes in the list.
Referenced by BiDiList< T, E, A >::count().
Get the first item of the list.
Get the first node in the list.
Referenced by BiDiList< T, E, A >::clear(), SimpleGC::doGC(), BiDiList< T, E, A >::first(), BiDiList< T, E, A >::last(), and BiDiList< T, E, A >::removeFirst().
Test if the list is empty.
Referenced by BiDiList< T, E, A >::clear(), BiDiList< T, E, A >::isEmpty(), DLList::removeFirst(), and DLList::removeLast().
Get the last item of the list.
Get the last node in the list.
Referenced by BiDiList< T, E, A >::last(), and BiDiList< T, E, A >::removeLast().
Remove the first item from the list.
Remove the first node of the list. Does not perform the deletion of the node. It is an error to call this method when the list is empty.
References DLList::isEmpty(), and DLNode::removeNext().
Referenced by BiDiList< T, E, A >::clear(), and BiDiList< T, E, A >::removeFirst().
Remove the last item from the list.
Remove the last node of the list. Does not perform the deletion of the node. It is an error to call this method when the list is empty.
References DLList::isEmpty(), and DLNode::removePrevious().
Referenced by BiDiList< T, E, A >::removeLast().