diff -r 43e37759235e -r 51a74ef9ed63 Symbian3/SDK/Source/GUID-B0492A3A-A7F6-5F41-AE5C-4B31AC85769B.dita --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Symbian3/SDK/Source/GUID-B0492A3A-A7F6-5F41-AE5C-4B31AC85769B.dita Wed Mar 31 11:11:55 2010 +0100 @@ -0,0 +1,30 @@ + + + + + +How to +construct an iteratorThis document describes how to create an iterator for a doubly +linked list. +

To create an iterator for a doubly linked list of CMyClass elements, +defined as:

+class CMyClass : public CBase + { + ... + TDblQueLink iDlink; + ... + }; +

first construct a header:

+TDblQue<CMyClass> queHeader(_FOFF(CMyClass,iDlink)); +

and then construct the iterator. The iterator requires the header at construction +time but the list can be empty:

+TDblQueIter<CMyClass> queIter(queHeader); +

The TDblQueIter class takes a class template parameter +that defines the type of object which is to form an element of the list.

+
\ No newline at end of file