next up previous contents index
Next: 16.3.2 Node structure Up: 16.3 Implementation Previous: 16.3 Implementation

   
16.3.1 Use of linked lists


  
Figure: Linked list implementation in .
linked-list

There are a number of linked lists used heavily in the implementation:

Figure 16.4 provides a schematic of how the linked list is organized. Each object in the list is linked through a ``LINK_ENTRY'' that is a protected member of the class. This entry contains a pointer to the next item in the list and also a pointer to the address of the previous ``next'' pointer in the preceding object. Various macros found in list.h can be used to manipulate the list; the implementation of linked-lists in  is similar to the queue implementation found in some variants of BSD UNIX.


next up previous contents index
Next: 16.3.2 Node structure Up: 16.3 Implementation Previous: 16.3 Implementation

2000-08-24