1<?xml version="1.0" encoding="UTF-8" standalone="no"?> 2<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 3<html xmlns="http://www.w3.org/1999/xhtml"> 4 <head> 5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 6 <title>Chapter��20.�� Db_reverse_iterator</title> 7 <link rel="stylesheet" href="apiReference.css" type="text/css" /> 8 <meta name="generator" content="DocBook XSL Stylesheets V1.73.2" /> 9 <link rel="start" href="index.html" title="Berkeley DB C++ Standard Template Library API Reference" /> 10 <link rel="up" href="index.html" title="Berkeley DB C++ Standard Template Library API Reference" /> 11 <link rel="prev" href="stldb_set_iteratorrefresh.html" title="refresh" /> 12 <link rel="next" href="stldb_reverse_iteratoroperator_decr.html" title="operator--" /> 13 </head> 14 <body> 15 <div class="navheader"> 16 <table width="100%" summary="Navigation header"> 17 <tr> 18 <th colspan="3" align="center">Chapter��20.�� 19 Db_reverse_iterator </th> 20 </tr> 21 <tr> 22 <td width="20%" align="left"><a accesskey="p" href="stldb_set_iteratorrefresh.html">Prev</a>��</td> 23 <th width="60%" align="center">��</th> 24 <td width="20%" align="right">��<a accesskey="n" href="stldb_reverse_iteratoroperator_decr.html">Next</a></td> 25 </tr> 26 </table> 27 <hr /> 28 </div> 29 <div class="chapter" lang="en" xml:lang="en"> 30 <div class="titlepage"> 31 <div> 32 <div> 33 <h2 class="title"><a id="db_reverse_iterator"></a>Chapter��20.�� 34 Db_reverse_iterator </h2> 35 </div> 36 </div> 37 </div> 38 <p>This class is the reverse class adaptor for all dbstl iterator classes. </p> 39 <p>It inherits from real iterator classes like <a class="link" href="db_vector_iterator.html" title="Chapter��13.�� Db_vector_iterator">db_vector_iterator</a> 40, <a class="link" href="db_map_iterator.html" title="Chapter��16.�� Db_map_iterator">db_map_iterator</a> 41 or <a class="link" href="db_set_iterator.html" title="Chapter��19.�� Db_set_iterator">db_set_iterator</a> 42. When you call container::rbegin(), you will get an instance of this class. </p> 43 <h4><a id="id1567098"></a> 44See Also 45</h4> 46 <p> </p> 47 <p><a class="link" href="db_vector_base_iterator.html" title="Chapter��12.�� Db_vector_base_iterator">db_vector_base_iterator</a> 48 <a class="link" href="db_vector_iterator.html" title="Chapter��13.�� Db_vector_iterator">db_vector_iterator</a> 49 <a class="link" href="db_map_base_iterator.html" title="Chapter��15.�� Db_map_base_iterator">db_map_base_iterator</a> 50 <a class="link" href="db_map_iterator.html" title="Chapter��16.�� Db_map_iterator">db_map_iterator</a> 51 <a class="link" href="db_set_base_iterator.html" title="Chapter��18.�� Db_set_base_iterator">db_set_base_iterator</a> 52 <a class="link" href="db_set_iterator.html" title="Chapter��19.�� Db_set_iterator">db_set_iterator</a> 53 </p> 54 <h4><a id="id1566986"></a> Public Members </h4> 55 <div class="informaltable"> 56 <table border="1" width="80%"> 57 <colgroup> 58 <col /> 59 <col /> 60 </colgroup> 61 <thead> 62 <tr> 63 <th>Member</th> 64 <th>Description</th> 65 </tr> 66 </thead> 67 <tbody> 68 <tr> 69 <td> 70<a class="xref" href="db_reverse_iterator.html#stldb_reverse_iteratoroperator_incr" title="operator++"> 71operator++ 72</a> 73</td> 74 <td> 75 <p>Move this iterator forward by one element. </p> </td> 76 </tr> 77 <tr> 78 <td> 79<a class="xref" href="stldb_reverse_iteratoroperator_decr.html" title="operator--"> 80operator-- 81</a> 82</td> 83 <td> 84 <p>Move this iterator backward by one element. </p> </td> 85 </tr> 86 <tr> 87 <td> 88<a class="xref" href="stldb_reverse_iteratoroperator_add.html" title="operator+"> 89operator+ 90</a> 91</td> 92 <td> 93 <p>Iterator shuffle operator. </p> </td> 94 </tr> 95 <tr> 96 <td> 97<a class="xref" href="stldb_reverse_iteratoroperator_sub.html" title="operator-"> 98operator- 99</a> 100</td> 101 <td> 102 <p>Iterator shuffle operator. </p> </td> 103 </tr> 104 <tr> 105 <td> 106<a class="xref" href="stldb_reverse_iteratoroperator_ia.html" title="operator+="> 107operator+= 108</a> 109</td> 110 <td> 111 <p>Iterator shuffle operator. </p> </td> 112 </tr> 113 <tr> 114 <td> 115<a class="xref" href="stldb_reverse_iteratoroperator_sa.html" title="operator-="> 116operator-= 117</a> 118</td> 119 <td> 120 <p>Iterator shuffle operator. </p> </td> 121 </tr> 122 <tr> 123 <td> 124<a class="xref" href="stldb_reverse_iteratoroperator_lt.html" title="operator<"> 125operator< 126</a> 127</td> 128 <td> 129 <p>Less compare operator. </p> </td> 130 </tr> 131 <tr> 132 <td> 133<a class="xref" href="stldb_reverse_iteratoroperator_gt.html" title="operator>"> 134operator> 135</a> 136</td> 137 <td> 138 <p>Greater compare operator. </p> </td> 139 </tr> 140 <tr> 141 <td> 142<a class="xref" href="stldb_reverse_iteratoroperator_le.html" title="operator<="> 143operator<= 144</a> 145</td> 146 <td> 147 <p>Less equal compare operator. </p> </td> 148 </tr> 149 <tr> 150 <td> 151<a class="xref" href="stldb_reverse_iteratoroperator_ge.html" title="operator>="> 152operator>= 153</a> 154</td> 155 <td> 156 <p>Greater equal compare operator. </p> </td> 157 </tr> 158 <tr> 159 <td> 160<a class="xref" href="stldb_reverse_iteratordb_reverse_iterator.html" title="db_reverse_iterator"> 161db_reverse_iterator 162</a> 163</td> 164 <td> 165 <p>Constructor. Construct from an iterator of wrapped type. </p> </td> 166 </tr> 167 <tr> 168 <td> 169<a class="xref" href="stldb_reverse_iteratoroperator_assign.html" title="operator="> 170operator= 171</a> 172</td> 173 <td> 174 <p>Assignment operator. </p> </td> 175 </tr> 176 <tr> 177 <td> 178<a class="xref" href="stldb_reverse_iteratoroperator_sqbrk.html" title="operator[]"> 179operator[] 180</a> 181</td> 182 <td> 183 <p>Return the reference of the element which can be reached by moving this reverse iterator by Off times backward. </p> </td> 184 </tr> 185 </tbody> 186 </table> 187 </div> 188 <h4><a id="id1567123"></a> 189Group</h4> 190 <p> 191<a class="xref" href="dbstl_iterators.html" title="Chapter��9.�� Dbstl Iterator Classes"> 192 Dbstl Iterator Classes </a> 193</p> 194 <p> 195</p> 196 <div class="sect1" lang="en" xml:lang="en"> 197 <div class="titlepage"> 198 <div> 199 <div> 200 <h2 class="title" style="clear: both"><a id="stldb_reverse_iteratoroperator_incr"></a> 201operator++ 202</h2> 203 </div> 204 </div> 205 </div> 206 <div class="sect2" lang="en" xml:lang="en"> 207 <div class="titlepage"> 208 <div> 209 <div> 210 <h3 class="title"><a id="func_details"></a> 211Function Details</h3> 212 </div> 213 </div> 214 </div> 215 <pre class="programlisting"> 216self&��operator++() 217 </pre> 218 <div class="sect3" lang="en" xml:lang="en"> 219 <div class="titlepage"></div> 220 <p>Move this iterator forward by one element. </p> 221 <p></p> 222 </div> 223 <div class="sect3" lang="en" xml:lang="en"> 224 <div class="titlepage"> 225 <div> 226 <div> 227 <h4 class="title"><a id="id1567154"></a> 228Return Value</h4> 229 </div> 230 </div> 231 </div> 232 <p>The moved iterator at new position. </p> 233 </div> 234 <pre class="programlisting"> 235self��operator++(int) 236 </pre> 237 <div class="sect3" lang="en" xml:lang="en"> 238 <div class="titlepage"></div> 239 <p>Move this iterator forward by one element. </p> 240 <p></p> 241 </div> 242 <div class="sect3" lang="en" xml:lang="en"> 243 <div class="titlepage"> 244 <div> 245 <div> 246 <h4 class="title"><a id="id1567178"></a> 247Return Value</h4> 248 </div> 249 </div> 250 </div> 251 <p>The original iterator at old position. </p> 252 </div> 253 </div> 254 <div class="sect2" lang="en" xml:lang="en"> 255 <div class="titlepage"> 256 <div> 257 <div> 258 <h3 class="title"><a id="id1566292"></a> 259Group: Reverse iterator movement functions</h3> 260 </div> 261 </div> 262 </div> 263 <p>When we talk about reverse iterator movement, we think the container is a uni-directional range, represented by [begin, end), and this is true no matter we are using iterators or reverse iterators.</p> 264 <p>When an iterator is moved closer to "begin", we say it is moved forward, otherwise we say it is moved backward. </p> 265 </div> 266 <div class="sect2" lang="en" xml:lang="en"> 267 <div class="titlepage"> 268 <div> 269 <div> 270 <h3 class="title"><a id="id1567009"></a> 271Class</h3> 272 </div> 273 </div> 274 </div> 275 <p> 276 <a class="link" href="db_reverse_iterator.html" title="Chapter��20.�� Db_reverse_iterator"> 277 db_reverse_iterator</a> 278 </p> 279 </div> 280 </div> 281 </div> 282 <div class="navfooter"> 283 <hr /> 284 <table width="100%" summary="Navigation footer"> 285 <tr> 286 <td width="40%" align="left"><a accesskey="p" href="stldb_set_iteratorrefresh.html">Prev</a>��</td> 287 <td width="20%" align="center">��</td> 288 <td width="40%" align="right">��<a accesskey="n" href="stldb_reverse_iteratoroperator_decr.html">Next</a></td> 289 </tr> 290 <tr> 291 <td width="40%" align="left" valign="top"> 292refresh 293��</td> 294 <td width="20%" align="center"> 295 <a accesskey="h" href="index.html">Home</a> 296 </td> 297 <td width="40%" align="right" valign="top">�� 298operator-- 299</td> 300 </tr> 301 </table> 302 </div> 303 </body> 304</html> 305