Elm
2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
|
#include <>>
Public Member Functions | |
DLNode * | next (void) const |
DLNode * | previous (void) const |
bool | atBegin (void) const |
bool | atEnd (void) const |
void | replace (DLNode *node) |
void | insertAfter (DLNode *node) |
void | insertBefore (DLNode *node) |
void | remove (void) |
void | removeNext (void) |
void | removePrevious (void) |
This class represents node in the DL list. In order to use the list, a user class must inherit from this one for attaching data.
Test if the current node is at the list begin. This method is used for back-traversing the list. When the current node is at begin, the traversal must be stopped.
Referenced by DLNode::removePrevious().
Test if the current node is at the list end. This method is used for traversing the list. When the current node is at end, the traversal must be stopped.
Referenced by SimpleGC::doGC(), and DLNode::removeNext().
Insert a node after the current one.
node | Node to insert. |
Referenced by DLList::addFirst().
Insert a node before the current one.
node | Node to insert. |
Referenced by DLList::addLast().
Remove the current node from the list. Does not perform the deletion of the node.
Referenced by DLNode::removeNext(), DLNode::removePrevious(), and Temp::~Temp().
Remove the next node from the list. It is an error to call this method on the last node of the list. Does not perform the deletion of the node.
References DLNode::atEnd(), and DLNode::remove().
Referenced by DLList::removeFirst().
Remove the previous node from the list. It is an error to call this method on the first node of the list. Does not perform the deletion of the node.
References DLNode::atBegin(), and DLNode::remove().
Referenced by DLList::removeLast().
Replace the current node by the given one.
node | Remplacement node. |