1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
---|
2 | <!-- /home/espenr/tmp/qt-3.3.8-espenr-2499/qt-x11-free-3.3.8/doc/qmap.doc:773 -->
|
---|
3 | <html>
|
---|
4 | <head>
|
---|
5 | <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
---|
6 | <title>QMapConstIterator Class</title>
|
---|
7 | <style type="text/css"><!--
|
---|
8 | fn { margin-left: 1cm; text-indent: -1cm; }
|
---|
9 | a:link { color: #004faf; text-decoration: none }
|
---|
10 | a:visited { color: #672967; text-decoration: none }
|
---|
11 | body { background: #ffffff; color: black; }
|
---|
12 | --></style>
|
---|
13 | </head>
|
---|
14 | <body>
|
---|
15 |
|
---|
16 | <table border="0" cellpadding="0" cellspacing="0" width="100%">
|
---|
17 | <tr bgcolor="#E5E5E5">
|
---|
18 | <td valign=center>
|
---|
19 | <a href="index.html">
|
---|
20 | <font color="#004faf">Home</font></a>
|
---|
21 | | <a href="classes.html">
|
---|
22 | <font color="#004faf">All Classes</font></a>
|
---|
23 | | <a href="mainclasses.html">
|
---|
24 | <font color="#004faf">Main Classes</font></a>
|
---|
25 | | <a href="annotated.html">
|
---|
26 | <font color="#004faf">Annotated</font></a>
|
---|
27 | | <a href="groups.html">
|
---|
28 | <font color="#004faf">Grouped Classes</font></a>
|
---|
29 | | <a href="functions.html">
|
---|
30 | <font color="#004faf">Functions</font></a>
|
---|
31 | </td>
|
---|
32 | <td align="right" valign="center"><img src="logo32.png" align="right" width="64" height="32" border="0"></td></tr></table><h1 align=center>QMapConstIterator Class Reference</h1>
|
---|
33 |
|
---|
34 | <p>The QMapConstIterator class provides an iterator for QMap.
|
---|
35 | <a href="#details">More...</a>
|
---|
36 | <p><tt>#include <<a href="qmap-h.html">qmap.h</a>></tt>
|
---|
37 | <p><a href="qmapconstiterator-members.html">List of all member functions.</a>
|
---|
38 | <h2>Public Members</h2>
|
---|
39 | <ul>
|
---|
40 | <li class=fn>typedef std::bidirectional_iterator_tag <a href="#iterator_category"><b>iterator_category</b></a></li>
|
---|
41 | <li class=fn>typedef T <a href="#value_type"><b>value_type</b></a></li>
|
---|
42 | <li class=fn>typedef const T * <a href="#pointer"><b>pointer</b></a></li>
|
---|
43 | <li class=fn>typedef const T & <a href="#reference"><b>reference</b></a></li>
|
---|
44 | <li class=fn><a href="#QMapConstIterator"><b>QMapConstIterator</b></a> ()</li>
|
---|
45 | <li class=fn><a href="#QMapConstIterator-2"><b>QMapConstIterator</b></a> ( QMapNode<K, T> * p )</li>
|
---|
46 | <li class=fn><a href="#QMapConstIterator-3"><b>QMapConstIterator</b></a> ( const QMapConstIterator<K, T> & it )</li>
|
---|
47 | <li class=fn><a href="#QMapConstIterator-4"><b>QMapConstIterator</b></a> ( const QMapIterator<K, T> & it )</li>
|
---|
48 | <li class=fn>bool <a href="#operator-eq-eq"><b>operator==</b></a> ( const QMapConstIterator<K, T> & it ) const</li>
|
---|
49 | <li class=fn>bool <a href="#operator!-eq"><b>operator!=</b></a> ( const QMapConstIterator<K, T> & it ) const</li>
|
---|
50 | <li class=fn>const T & <a href="#operator*"><b>operator*</b></a> () const</li>
|
---|
51 | <li class=fn>const K & <a href="#key"><b>key</b></a> () const</li>
|
---|
52 | <li class=fn>const T & <a href="#data"><b>data</b></a> () const</li>
|
---|
53 | <li class=fn>QMapConstIterator<K, T> & <a href="#operator++"><b>operator++</b></a> ()</li>
|
---|
54 | <li class=fn>QMapConstIterator<K, T> <a href="#operator++-2"><b>operator++</b></a> ( int )</li>
|
---|
55 | <li class=fn>QMapConstIterator<K, T> & <a href="#operator--"><b>operator--</b></a> ()</li>
|
---|
56 | <li class=fn>QMapConstIterator<K, T> <a href="#operator---2"><b>operator--</b></a> ( int )</li>
|
---|
57 | </ul>
|
---|
58 | <hr><a name="details"></a><h2>Detailed Description</h2>
|
---|
59 |
|
---|
60 |
|
---|
61 | The QMapConstIterator class provides an iterator for <a href="qmap.html">QMap</a>.
|
---|
62 | <p>
|
---|
63 |
|
---|
64 | <p> In contrast to <a href="qmapiterator.html">QMapIterator</a>, this class is used to iterate over a
|
---|
65 | const map. It does not allow you to modify the values of the map
|
---|
66 | because this would break the const semantics.
|
---|
67 | <p> For more information on QMap iterators, see <a href="qmapiterator.html">QMapIterator</a> and
|
---|
68 | the <a href="qmap.html#qmap-eg">QMap example</a>.
|
---|
69 | <p> <p>See also <a href="qmap.html">QMap</a>, <a href="qmapiterator.html">QMapIterator</a>, <a href="qtl.html">Qt Template Library Classes</a>, and <a href="tools.html">Non-GUI Classes</a>.
|
---|
70 |
|
---|
71 | <hr><h2>Member Type Documentation</h2>
|
---|
72 | <h3 class=fn><a name="iterator_category"></a>QMapConstIterator::iterator_category</h3>
|
---|
73 | The type of iterator category, <tt>std::bidirectional_iterator_tag</tt>.
|
---|
74 | <h3 class=fn><a name="pointer"></a>QMapConstIterator::pointer</h3>
|
---|
75 | Const pointer to value_type.
|
---|
76 | <h3 class=fn><a name="reference"></a>QMapConstIterator::reference</h3>
|
---|
77 | Const reference to value_type.
|
---|
78 | <h3 class=fn><a name="value_type"></a>QMapConstIterator::value_type</h3>
|
---|
79 | The type of const value.
|
---|
80 | <hr><h2>Member Function Documentation</h2>
|
---|
81 | <h3 class=fn><a name="QMapConstIterator"></a>QMapConstIterator::QMapConstIterator ()
|
---|
82 | </h3>
|
---|
83 |
|
---|
84 | <p> Constructs an uninitialized iterator.
|
---|
85 |
|
---|
86 | <h3 class=fn><a name="QMapConstIterator-2"></a>QMapConstIterator::QMapConstIterator ( QMapNode<K, T> * p )
|
---|
87 | </h3>
|
---|
88 |
|
---|
89 | <p> Constructs an iterator starting at node <em>p</em>.
|
---|
90 |
|
---|
91 | <h3 class=fn><a name="QMapConstIterator-3"></a>QMapConstIterator::QMapConstIterator ( const <a href="qmapconstiterator.html">QMapConstIterator</a><K, T> & it )
|
---|
92 | </h3>
|
---|
93 |
|
---|
94 | <p> Constructs a copy of the iterator, <em>it</em>.
|
---|
95 |
|
---|
96 | <h3 class=fn><a name="QMapConstIterator-4"></a>QMapConstIterator::QMapConstIterator ( const <a href="qmapiterator.html">QMapIterator</a><K, T> & it )
|
---|
97 | </h3>
|
---|
98 |
|
---|
99 | <p> Constructs a copy of the iterator, <em>it</em>.
|
---|
100 |
|
---|
101 | <h3 class=fn>const T & <a name="data"></a>QMapConstIterator::data () const
|
---|
102 | </h3>
|
---|
103 |
|
---|
104 | <p> Returns a const reference to the current item's data.
|
---|
105 |
|
---|
106 | <h3 class=fn>const K & <a name="key"></a>QMapConstIterator::key () const
|
---|
107 | </h3>
|
---|
108 |
|
---|
109 | <p> Returns a const reference to the current item's key.
|
---|
110 |
|
---|
111 | <h3 class=fn>bool <a name="operator!-eq"></a>QMapConstIterator::operator!= ( const <a href="qmapconstiterator.html">QMapConstIterator</a><K, T> & it ) const
|
---|
112 | </h3>
|
---|
113 |
|
---|
114 | <p> Compares the iterator to the <em>it</em> iterator and returns FALSE if
|
---|
115 | they point to the same item; otherwise returns TRUE.
|
---|
116 |
|
---|
117 | <h3 class=fn>const T & <a name="operator*"></a>QMapConstIterator::operator* () const
|
---|
118 | </h3>
|
---|
119 |
|
---|
120 | <p> Dereference operator. Returns a const reference to the current
|
---|
121 | item's data. The same as <a href="#data">data</a>().
|
---|
122 |
|
---|
123 | <h3 class=fn><a href="qmapconstiterator.html">QMapConstIterator</a><K, T> & <a name="operator++"></a>QMapConstIterator::operator++ ()
|
---|
124 | </h3>
|
---|
125 |
|
---|
126 | <p> Prefix ++ makes the succeeding item current and returns an
|
---|
127 | iterator pointing to the new current item. The iterator cannot
|
---|
128 | check whether it reached the end of the map. Incrementing the
|
---|
129 | iterator returned by end() causes undefined results.
|
---|
130 |
|
---|
131 | <h3 class=fn><a href="qmapconstiterator.html">QMapConstIterator</a><K, T> <a name="operator++-2"></a>QMapConstIterator::operator++ ( int )
|
---|
132 | </h3>
|
---|
133 |
|
---|
134 | <p> This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
|
---|
135 | <p> Postfix ++ makes the succeeding item current and returns an
|
---|
136 | iterator pointing to the new current item. The iterator cannot
|
---|
137 | check whether it reached the end of the map. Incrementing the
|
---|
138 | iterator returned by end() causes undefined results.
|
---|
139 |
|
---|
140 | <h3 class=fn><a href="qmapconstiterator.html">QMapConstIterator</a><K, T> & <a name="operator--"></a>QMapConstIterator::operator-- ()
|
---|
141 | </h3>
|
---|
142 |
|
---|
143 | <p> Prefix -- makes the previous item current and returns an iterator
|
---|
144 | pointing to the new current item. The iterator cannot check
|
---|
145 | whether it reached the beginning of the map. Decrementing the
|
---|
146 | iterator returned by begin() causes undefined results.
|
---|
147 |
|
---|
148 | <h3 class=fn><a href="qmapconstiterator.html">QMapConstIterator</a><K, T> <a name="operator---2"></a>QMapConstIterator::operator-- ( int )
|
---|
149 | </h3>
|
---|
150 |
|
---|
151 | <p> This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
|
---|
152 | <p> Postfix -- makes the previous item current and returns an iterator
|
---|
153 | pointing to the new current item. The iterator cannot check
|
---|
154 | whether it reached the beginning of the map. Decrementing the
|
---|
155 | iterator returned by begin() causes undefined results.
|
---|
156 |
|
---|
157 | <h3 class=fn>bool <a name="operator-eq-eq"></a>QMapConstIterator::operator== ( const <a href="qmapconstiterator.html">QMapConstIterator</a><K, T> & it ) const
|
---|
158 | </h3>
|
---|
159 |
|
---|
160 | <p> Compares the iterator to the <em>it</em> iterator and returns TRUE if
|
---|
161 | they point to the same item; otherwise returns FALSE.
|
---|
162 |
|
---|
163 | <!-- eof -->
|
---|
164 | <hr><p>
|
---|
165 | This file is part of the <a href="index.html">Qt toolkit</a>.
|
---|
166 | Copyright © 1995-2007
|
---|
167 | <a href="http://www.trolltech.com/">Trolltech</a>. All Rights Reserved.<p><address><hr><div align=center>
|
---|
168 | <table width=100% cellspacing=0 border=0><tr>
|
---|
169 | <td>Copyright © 2007
|
---|
170 | <a href="troll.html">Trolltech</a><td align=center><a href="trademarks.html">Trademarks</a>
|
---|
171 | <td align=right><div align=right>Qt 3.3.8</div>
|
---|
172 | </table></div></address></body>
|
---|
173 | </html>
|
---|