#include <CNCL/DLList.h>
CN_DLLIST
CNSLList
None
CNDLObject, CNDLIterator
CNDLList
is a doubly linked list that can contain any CNCL
compatible object.
Constructors:
CNDLList();
CNDLList(CNParam *param);
Destructors:
~CNDLList();
CNDLObject
nodes. It does NOT
delete the objects referenced by the nodes.
In addition to the member functions required by CNCL and to the
functions supplied by CNSLList
, CNDLList
provides or
defines more efficiently:
CNDLObject *last() const;
NIL
if the list is empty.
CNDLObject *prev(CNDLObject *link) const;
link
points to the
current node. This may be NIL
if the previous node doesn't exist.
CNDLObject *append(CNObject *obj);
CNDLObject *append(CNObject &obj);
obj
. It returns the node allocated for the object.
CNDLObject *append(CNDLObject *obj);
obj
.
CNDLObject *insert_before(CNDLObject *pos, CNObject *obj);
CNDLObject *insert_before(CNDLObject *pos, CNObject &obj);
obj
and inserts it into the list before
node pos
. It returns the new node.
CNDLObject *insert_before(CNDLObject *pos, CNDLObject *obj);
pos
.
It returns obj
.
bool ok();
TRUE
, if the list is
o.k.
Go to the first, previous, next, last section, table of contents.