3
3
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
4
4
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
<!-- /fasttmp/mkdist-qt-4.4.0-1209388211/qt-x11-opensource-src-4.4.0/doc/src/q3ptrdict.qdoc -->
5
<!-- /fasttmp/mkdist-qt-4.4.1-1217326953/qt-all-opensource-src-4.4.1/doc/src/q3ptrdict.qdoc -->
7
7
<title>Qt 4.4: Q3PtrDictIterator Class Reference</title>
8
8
<link href="classic.css" rel="stylesheet" type="text/css" />
11
<a name="//apple_ref/cpp/cl//Q3PtrDictIterator" />
11
12
<table border="0" cellpadding="0" cellspacing="0" width="100%">
13
14
<td align="left" valign="top" width="32"><a href="http://www.trolltech.com/products/qt"><img src="images/qt-logo.png" align="left" width="32" height="32" border="0" /></a></td>
69
70
<p>See also <a href="q3ptrdict.html">Q3PtrDict</a>.</p>
71
72
<h2>Member Function Documentation</h2>
73
<a name="//apple_ref/cpp/instm/Q3PtrDictIterator/Q3PtrDictIterator" />
72
74
<h3 class="fn"><a name="Q3PtrDictIterator"></a>Q3PtrDictIterator::Q3PtrDictIterator ( const <a href="q3ptrdict.html">Q3PtrDict</a><type> & <i>dict</i> )</h3>
73
75
<p>Constructs an iterator for <i>dict</i>. The current iterator item is set to point on the first item in the <i>dict</i>.</p>
76
<a name="//apple_ref/cpp/instm/Q3PtrDictIterator/~Q3PtrDictIterator" />
74
77
<h3 class="fn"><a name="dtor.Q3PtrDictIterator"></a>Q3PtrDictIterator::~Q3PtrDictIterator ()</h3>
75
78
<p>Destroys the iterator.</p>
79
<a name="//apple_ref/cpp/instm/Q3PtrDictIterator/count" />
76
80
<h3 class="fn"><a name="count"></a><a href="qtglobal.html#uint-typedef">uint</a> Q3PtrDictIterator::count () const</h3>
77
81
<p>Returns the number of items in the dictionary this iterator operates on.</p>
78
82
<p>See also <a href="q3ptrdictiterator.html#isEmpty">isEmpty</a>().</p>
83
<a name="//apple_ref/cpp/instm/Q3PtrDictIterator/current" />
79
84
<h3 class="fn"><a name="current"></a>type * Q3PtrDictIterator::current () const</h3>
80
85
<p>Returns a pointer to the current iterator item's value.</p>
86
<a name="//apple_ref/cpp/instm/Q3PtrDictIterator/currentKey" />
81
87
<h3 class="fn"><a name="currentKey"></a>void * Q3PtrDictIterator::currentKey () const</h3>
82
88
<p>Returns the current iterator item's key.</p>
89
<a name="//apple_ref/cpp/instm/Q3PtrDictIterator/isEmpty" />
83
90
<h3 class="fn"><a name="isEmpty"></a>bool Q3PtrDictIterator::isEmpty () const</h3>
84
91
<p>Returns TRUE if the dictionary is empty; otherwise returns FALSE.</p>
85
92
<p>See also <a href="q3ptrdictiterator.html#count">count</a>().</p>
93
<a name="//apple_ref/cpp/instm/Q3PtrDictIterator/toFirst" />
86
94
<h3 class="fn"><a name="toFirst"></a>type * Q3PtrDictIterator::toFirst ()</h3>
87
95
<p>Sets the current iterator item to point to the first item in the dictionary and returns a pointer to the item. If the dictionary is empty, it sets the current item to 0 and returns 0.</p>
96
<a name="//apple_ref/cpp/instm/Q3PtrDictIterator/operator type *" />
88
97
<h3 class="fn"><a name="operator-type--2a"></a>Q3PtrDictIterator::operator type * () const</h3>
89
98
<p>Cast operator. Returns a pointer to the current iterator item. Same as <a href="q3ptrdictiterator.html#current">current</a>().</p>
99
<a name="//apple_ref/cpp/instm/Q3PtrDictIterator/operator" />
90
100
<h3 class="fn"><a name="operator-28-29"></a>type * Q3PtrDictIterator::operator() ()</h3>
91
101
<p>Makes the succeeding item current and returns the original current item.</p>
92
102
<p>If the current iterator item was the last item in the dictionary or if it was 0, 0 is returned.</p>
103
<a name="//apple_ref/cpp/instm/Q3PtrDictIterator/operator++" />
93
104
<h3 class="fn"><a name="operator-2b-2b"></a>type * Q3PtrDictIterator::operator++ ()</h3>
94
105
<p>Prefix ++ makes the succeeding item current and returns the new current item.</p>
95
106
<p>If the current iterator item was the last item in the dictionary or if it was 0, 0 is returned.</p>
107
<a name="//apple_ref/cpp/instm/Q3PtrDictIterator/operator+=" />
96
108
<h3 class="fn"><a name="operator-2b-eq"></a>type * Q3PtrDictIterator::operator+= ( <a href="qtglobal.html#uint-typedef">uint</a> <i>jump</i> )</h3>
97
109
<p>Sets the current item to the item <i>jump</i> positions after the current item and returns a pointer to that item.</p>
98
110
<p>If that item is beyond the last item or if the dictionary is empty, it sets the current item to 0 and returns 0.</p>
100
112
<table width="100%" cellspacing="0" border="0"><tr class="address">
101
113
<td width="30%">Copyright © 2008 <a href="trolltech.html">Trolltech</a></td>
102
114
<td width="40%" align="center"><a href="trademarks.html">Trademarks</a></td>
103
<td width="30%" align="right"><div align="right">Qt 4.4.0</div></td>
115
<td width="30%" align="right"><div align="right">Qt 4.4.1</div></td>
104
116
</tr></table></div></address></body>