Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

[Index] [Glossary] [Previous] [Next]



Doubly Linked Lists Overview


Purpose

Manipulates a doubly-linked list: an ordered, non-indexed list of elements, that can be traversed in both directions.

The API contains all the necessary functionality for doubly-linked lists. It is possible to derive from its classes to add additional features.

[Top]


Description

The API has three key concepts: list header (TDblQue), link class (TDblQueLink), and iterator class (TDblQueIter).


General properties

Note the following properties of doubly-linked lists:


List header

The list header supplies the behaviour for managing a doubly linked list of objects.

The list header interface is provided by TDblQue<class T>. The T template parameter specifies the type of objects in the list.


Link class

To be a member of a doubly linked list, an object must contain an instance of the link class as a data member.

The link class interface is provided by TDblQueLink.


Iterator class

The iterator class supplies the behaviour for moving through the elements of a list.

The iterator class interface is provided by TDblQueIter.

[Top]


See also

Circular Buffers Overview

Singly Linked Lists Overview