Go to the first, previous, next, last section, table of contents.


CNDLObject -- Node of Doubly Linked List

SYNOPSIS

#include <CNCL/DLObject.h>

TYPE

CN_DLOBJECT

BASE CLASSES

CNSLObject

DERIVED CLASSES

None

RELATED CLASSES

CNDLList, CNDLIterator

DESCRIPTION

CNDLObject is a node in the CNDLList doubly linked list. In addition to the base class it contains a pointer to the previous node.

Constructors:

CNDLObject();
CNDLObject(CNParam *param);
CNDLObject(CNObject *obj);
Initializes CNDLObject and optionally sets a referenced object.

CNDLObjects have a private destructor and can therefore only be allocated on the heap. Furthermore CNDLObjects cannot be copied, no copy constructor is supplied; an attempt do so results in a runtime error.

In addition to the member functions required by CNCL and to the functions declared at CNSLObject, CNDLObject provides:

CNDLObject *prev(CNDLObject *p);
CNDLObject *prev();
CNDLObject *set_prev(CNDLObject *p);
CNDLObject *get_prev();
Gets/sets the pointer to the previous node. It returns the current pointer.


Go to the first, previous, next, last section, table of contents.