source: trunk/doc/html/qvaluelistconstiterator.html

Last change on this file was 190, checked in by rudi, 14 years ago

reference documentation added

File size: 8.3 KB
Line 
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/qvaluelist.doc:1024 -->
3<html>
4<head>
5<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
6<title>QValueListConstIterator Class</title>
7<style type="text/css"><!--
8fn { margin-left: 1cm; text-indent: -1cm; }
9a:link { color: #004faf; text-decoration: none }
10a:visited { color: #672967; text-decoration: none }
11body { 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&nbsp;Classes</font></a>
23 | <a href="mainclasses.html">
24<font color="#004faf">Main&nbsp;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&nbsp;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>QValueListConstIterator Class Reference</h1>
33
34<p>The QValueListConstIterator class provides a const iterator
35for QValueList.
36<a href="#details">More...</a>
37<p>All the functions in this class are <a href="threads.html#reentrant">reentrant</a> when Qt is built with thread support.</p>
38<p><tt>#include &lt;<a href="qvaluelist-h.html">qvaluelist.h</a>&gt;</tt>
39<p><a href="qvaluelistconstiterator-members.html">List of all member functions.</a>
40<h2>Public Members</h2>
41<ul>
42<li class=fn>typedef T&nbsp;<a href="#value_type"><b>value_type</b></a></li>
43<li class=fn>typedef const&nbsp;T&nbsp;*&nbsp;<a href="#pointer"><b>pointer</b></a></li>
44<li class=fn>typedef const&nbsp;T&nbsp;&amp;&nbsp;<a href="#reference"><b>reference</b></a></li>
45<li class=fn><a href="#QValueListConstIterator"><b>QValueListConstIterator</b></a> ()</li>
46<li class=fn><a href="#QValueListConstIterator-3"><b>QValueListConstIterator</b></a> ( const&nbsp;QValueListConstIterator&lt;T&gt;&nbsp;&amp;&nbsp;it )</li>
47<li class=fn><a href="#QValueListConstIterator-4"><b>QValueListConstIterator</b></a> ( const&nbsp;QValueListIterator&lt;T&gt;&nbsp;&amp;&nbsp;it )</li>
48<li class=fn>bool <a href="#operator-eq-eq"><b>operator==</b></a> ( const&nbsp;QValueListConstIterator&lt;T&gt;&nbsp;&amp;&nbsp;it ) const</li>
49<li class=fn>bool <a href="#operator!-eq"><b>operator!=</b></a> ( const&nbsp;QValueListConstIterator&lt;T&gt;&nbsp;&amp;&nbsp;it ) const</li>
50<li class=fn>const T &amp; <a href="#operator*"><b>operator*</b></a> () const</li>
51<li class=fn>QValueListConstIterator&lt;T&gt; &amp; <a href="#operator++"><b>operator++</b></a> ()</li>
52<li class=fn>QValueListConstIterator&lt;T&gt; <a href="#operator++-2"><b>operator++</b></a> ( int )</li>
53<li class=fn>QValueListConstIterator&lt;T&gt; &amp; <a href="#operator--"><b>operator--</b></a> ()</li>
54<li class=fn>QValueListConstIterator&lt;T&gt; <a href="#operator---2"><b>operator--</b></a> ( int )</li>
55</ul>
56<hr><a name="details"></a><h2>Detailed Description</h2>
57
58
59The QValueListConstIterator class provides a const iterator
60for <a href="qvaluelist.html">QValueList</a>.
61<p>
62
63
64<p> In contrast to <a href="qvaluelistiterator.html">QValueListIterator</a>, this class is used to iterate
65over a const list. It does not allow modification of the values of
66the list since that would break const semantics.
67<p> You can create the appropriate const iterator type by using the <tt>const_iterator</tt> typedef provided by QValueList.
68<p> For more information on QValueList iterators, see
69QValueListIterator.
70<p> <p>See also <a href="qvaluelistiterator.html">QValueListIterator</a>, <a href="qvaluelist.html">QValueList</a>, <a href="qtl.html">Qt Template Library Classes</a>, and <a href="tools.html">Non-GUI Classes</a>.
71
72<hr><h2>Member Type Documentation</h2>
73<h3 class=fn><a name="pointer"></a>QValueListConstIterator::pointer</h3>
74Pointer to value_type.
75<h3 class=fn><a name="reference"></a>QValueListConstIterator::reference</h3>
76Reference to value_type.
77<h3 class=fn><a name="value_type"></a>QValueListConstIterator::value_type</h3>
78The type of value.
79<hr><h2>Member Function Documentation</h2>
80<h3 class=fn><a name="QValueListConstIterator"></a>QValueListConstIterator::QValueListConstIterator ()
81</h3>
82
83<p> Creates un uninitialized iterator.
84
85<h3 class=fn><a name="QValueListConstIterator-3"></a>QValueListConstIterator::QValueListConstIterator ( const&nbsp;<a href="qvaluelistconstiterator.html">QValueListConstIterator</a>&lt;T&gt;&nbsp;&amp;&nbsp;it )
86</h3>
87
88<p> This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
89<p> Constructs a copy of the iterator <em>it</em>.
90
91<h3 class=fn><a name="QValueListConstIterator-4"></a>QValueListConstIterator::QValueListConstIterator ( const&nbsp;<a href="qvaluelistiterator.html">QValueListIterator</a>&lt;T&gt;&nbsp;&amp;&nbsp;it )
92</h3>
93
94<p> Constructs a copy of the iterator <em>it</em>.
95
96<h3 class=fn>bool <a name="operator!-eq"></a>QValueListConstIterator::operator!= ( const&nbsp;<a href="qvaluelistconstiterator.html">QValueListConstIterator</a>&lt;T&gt;&nbsp;&amp;&nbsp;it ) const
97</h3>
98
99<p> Compares this iterator with <em>it</em> and returns TRUE if they point
100to different items; otherwise returns FALSE.
101
102<h3 class=fn>const T &amp; <a name="operator*"></a>QValueListConstIterator::operator* () const
103</h3>
104
105<p> Asterisk operator. Returns a reference to the current iterator item.
106
107<h3 class=fn><a href="qvaluelistconstiterator.html">QValueListConstIterator</a>&lt;T&gt;&nbsp;&amp; <a name="operator++"></a>QValueListConstIterator::operator++ ()
108</h3>
109
110<p> Prefix ++ makes the succeeding item current and returns an
111iterator pointing to the new current item. The iterator cannot
112check whether it reached the end of the list. Incrementing the
113iterator returned by end() causes undefined results.
114
115<h3 class=fn><a href="qvaluelistconstiterator.html">QValueListConstIterator</a>&lt;T&gt; <a name="operator++-2"></a>QValueListConstIterator::operator++ ( int )
116</h3>
117
118<p> This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
119<p> Postfix ++ makes the succeeding item current and returns an
120iterator pointing to the new current item. The iterator cannot
121check whether it reached the end of the list. Incrementing the
122iterator returned by end() causes undefined results.
123
124<h3 class=fn><a href="qvaluelistconstiterator.html">QValueListConstIterator</a>&lt;T&gt;&nbsp;&amp; <a name="operator--"></a>QValueListConstIterator::operator-- ()
125</h3>
126
127<p> Prefix -- makes the previous item current and returns an iterator
128pointing to the new current item. The iterator cannot check
129whether it reached the beginning of the list. Decrementing the
130iterator returned by begin() causes undefined results.
131
132<h3 class=fn><a href="qvaluelistconstiterator.html">QValueListConstIterator</a>&lt;T&gt; <a name="operator---2"></a>QValueListConstIterator::operator-- ( int )
133</h3>
134
135<p> This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
136<p> Postfix -- makes the previous item current and returns an iterator
137pointing to the new current item. The iterator cannot check
138whether it reached the beginning of the list. Decrementing the
139iterator returned by begin() causes undefined results.
140
141<h3 class=fn>bool <a name="operator-eq-eq"></a>QValueListConstIterator::operator== ( const&nbsp;<a href="qvaluelistconstiterator.html">QValueListConstIterator</a>&lt;T&gt;&nbsp;&amp;&nbsp;it ) const
142</h3>
143
144<p> Compares this iterator with <em>it</em> and returns TRUE if they point
145to the same item; otherwise returns FALSE.
146
147<!-- eof -->
148<hr><p>
149This file is part of the <a href="index.html">Qt toolkit</a>.
150Copyright &copy; 1995-2007
151<a href="http://www.trolltech.com/">Trolltech</a>. All Rights Reserved.<p><address><hr><div align=center>
152<table width=100% cellspacing=0 border=0><tr>
153<td>Copyright &copy; 2007
154<a href="troll.html">Trolltech</a><td align=center><a href="trademarks.html">Trademarks</a>
155<td align=right><div align=right>Qt 3.3.8</div>
156</table></div></address></body>
157</html>
Note: See TracBrowser for help on using the repository browser.