equal
deleted
inserted
replaced
|
1 <?xml version="1.0" encoding="utf-8"?> |
|
2 <!-- Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies) All rights reserved. --> |
|
3 <!-- This component and the accompanying materials are made available under the terms of the License |
|
4 "Eclipse Public License v1.0" which accompanies this distribution, |
|
5 and is available at the URL "http://www.eclipse.org/legal/epl-v10.html". --> |
|
6 <!-- Initial Contributors: |
|
7 Nokia Corporation - initial contribution. |
|
8 Contributors: |
|
9 --> |
|
10 <!DOCTYPE concept |
|
11 PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd"> |
|
12 <concept id="GUID-4FB4CAD4-52BD-5DC1-9B20-34DA77F70A9D" xml:lang="en"><title>Iterators</title><shortdesc>This document describes iterators within the context of doubly |
|
13 linked lists.</shortdesc><prolog><metadata><keywords/></metadata></prolog><conbody> |
|
14 <p>Iterators provide an easy way of cycling through the elements of a doubly |
|
15 linked list, using the post increment operator<codeph>++</codeph> and the |
|
16 post decrement operator<codeph>--</codeph>. They avoid the need to access |
|
17 the inner detail of link objects and list headers.</p> |
|
18 <p>An iterator is an instance of the templated class <codeph>TDblQueIter<class |
|
19 T></codeph>. The class provides the behaviour for moving through the elements |
|
20 of a specific list. An iterator maintains a pointer to the current element |
|
21 in the list. The current element can be any element in the list.</p> |
|
22 </conbody></concept> |