| 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>begin</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="db_map.html" title="Chapter 5. Db_map" /> |
| 11 | <link rel="prev" href="stldb_mapinsert.html" title="insert" /> |
| 12 | <link rel="next" href="stldb_mapend.html" title="end" /> |
| 13 | </head> |
| 14 | <body> |
| 15 | <div xmlns="" class="navheader"> |
| 16 | <div class="libver"> |
| 17 | <p>Library Version 11.2.5.3</p> |
| 18 | </div> |
| 19 | <table width="100%" summary="Navigation header"> |
| 20 | <tr> |
| 21 | <th colspan="3" align="center"> |
| 22 | begin |
| 23 | </th> |
| 24 | </tr> |
| 25 | <tr> |
| 26 | <td width="20%" align="left"><a accesskey="p" href="stldb_mapinsert.html">Prev</a> </td> |
| 27 | <th width="60%" align="center">Chapter 5. |
| 28 | Db_map </th> |
| 29 | <td width="20%" align="right"> <a accesskey="n" href="stldb_mapend.html">Next</a></td> |
| 30 | </tr> |
| 31 | </table> |
| 32 | <hr /> |
| 33 | </div> |
| 34 | <div class="sect1" lang="en" xml:lang="en"> |
| 35 | <div class="titlepage"> |
| 36 | <div> |
| 37 | <div> |
| 38 | <h2 class="title" style="clear: both"><a id="stldb_mapbegin"></a> |
| 39 | begin |
| 40 | </h2> |
| 41 | </div> |
| 42 | </div> |
| 43 | </div> |
| 44 | <div class="sect2" lang="en" xml:lang="en"> |
| 45 | <div class="titlepage"> |
| 46 | <div> |
| 47 | <div> |
| 48 | <h3 class="title"><a id="stldb_mapbegin_details"></a>Function Details</h3> |
| 49 | </div> |
| 50 | </div> |
| 51 | </div> |
| 52 | <pre class="programlisting"> |
| 53 | iterator begin(ReadModifyWriteOption rmw= |
| 54 | ReadModifyWriteOption::no_read_modify_write(), bool readonly=false, |
| 55 | BulkRetrievalOption bulkretrieval= |
| 56 | BulkRetrievalOption::no_bulk_retrieval(), |
| 57 | bool directdb_get=true) |
| 58 | </pre> |
| 59 | <p>Begin a read-write or readonly iterator which sits on the first key/data pair of the database. </p> |
| 60 | <div class="sect3" lang="en" xml:lang="en"> |
| 61 | <div class="titlepage"> |
| 62 | <div> |
| 63 | <div> |
| 64 | <h4 class="title"><a id="idp50416048"></a>Parameters</h4> |
| 65 | </div> |
| 66 | </div> |
| 67 | </div> |
| 68 | <div class="sect4" lang="en" xml:lang="en"> |
| 69 | <div class="titlepage"> |
| 70 | <div> |
| 71 | <div> |
| 72 | <h5 class="title"><a id="idp50419592"></a>directdb_get</h5> |
| 73 | </div> |
| 74 | </div> |
| 75 | </div> |
| 76 | <p>Same as that of db_vector::begin(ReadModifyWrite, bool, BulkRetrievalOption, bool); </p> |
| 77 | </div> |
| 78 | <div class="sect4" lang="en" xml:lang="en"> |
| 79 | <div class="titlepage"> |
| 80 | <div> |
| 81 | <div> |
| 82 | <h5 class="title"><a id="idp50431880"></a>readonly</h5> |
| 83 | </div> |
| 84 | </div> |
| 85 | </div> |
| 86 | <p>Same as that of db_vector::begin(ReadModifyWrite, bool, BulkRetrievalOption, bool); </p> |
| 87 | </div> |
| 88 | <div class="sect4" lang="en" xml:lang="en"> |
| 89 | <div class="titlepage"> |
| 90 | <div> |
| 91 | <div> |
| 92 | <h5 class="title"><a id="idp50432296"></a>rmw</h5> |
| 93 | </div> |
| 94 | </div> |
| 95 | </div> |
| 96 | <p>Same as that of db_vector::begin(ReadModifyWrite, bool, BulkRetrievalOption, bool); </p> |
| 97 | </div> |
| 98 | <div class="sect4" lang="en" xml:lang="en"> |
| 99 | <div class="titlepage"> |
| 100 | <div> |
| 101 | <div> |
| 102 | <h5 class="title"><a id="idp50432712"></a>bulkretrieval</h5> |
| 103 | </div> |
| 104 | </div> |
| 105 | </div> |
| 106 | <p>Same as that of db_vector::begin(ReadModifyWrite, bool, BulkRetrievalOption, bool); </p> |
| 107 | </div> |
| 108 | </div> |
| 109 | <div class="sect3" lang="en" xml:lang="en"> |
| 110 | <div class="titlepage"> |
| 111 | <div> |
| 112 | <div> |
| 113 | <h4 class="title"><a id="idp50429632"></a>Return Value</h4> |
| 114 | </div> |
| 115 | </div> |
| 116 | </div> |
| 117 | <p>The created iterator. </p> |
| 118 | </div> |
| 119 | <div class="sect3" lang="en" xml:lang="en"> |
| 120 | <div class="titlepage"> |
| 121 | <div> |
| 122 | <div> |
| 123 | <h4 class="title"><a id="idp50433128"></a>See Also</h4> |
| 124 | </div> |
| 125 | </div> |
| 126 | </div> |
| 127 | <p> |
| 128 | </p> |
| 129 | <p><a class="link" href="db_vector.html#stldb_vectorbegin" title="begin">db_vector::begin</a> |
| 130 | (<a class="link" href="ReadModifyWriteOption.html" title="Chapter 28. ReadModifyWriteOption">ReadModifyWriteOption</a> |
| 131 | , bool, <a class="link" href="BulkRetrievalOption.html" title="Chapter 27. BulkRetrievalOption">BulkRetrievalOption</a> |
| 132 | , bool) </p> |
| 133 | <p> |
| 134 | </p> |
| 135 | </div> |
| 136 | <pre class="programlisting"> |
| 137 | const_iterator begin(BulkRetrievalOption bulkretrieval= |
| 138 | BulkRetrievalOption::no_bulk_retrieval(), |
| 139 | bool directdb_get=true) const |
| 140 | </pre> |
| 141 | <p>Begin a read-only iterator. </p> |
| 142 | <div class="sect3" lang="en" xml:lang="en"> |
| 143 | <div class="titlepage"> |
| 144 | <div> |
| 145 | <div> |
| 146 | <h4 class="title"><a id="idp50415240"></a>Parameters</h4> |
| 147 | </div> |
| 148 | </div> |
| 149 | </div> |
| 150 | <div class="sect4" lang="en" xml:lang="en"> |
| 151 | <div class="titlepage"> |
| 152 | <div> |
| 153 | <div> |
| 154 | <h5 class="title"><a id="idp50421336"></a>directdb_get</h5> |
| 155 | </div> |
| 156 | </div> |
| 157 | </div> |
| 158 | <p>Same as that of begin(ReadModifyWrite, bool, BulkRetrievalOption, bool); </p> |
| 159 | </div> |
| 160 | <div class="sect4" lang="en" xml:lang="en"> |
| 161 | <div class="titlepage"> |
| 162 | <div> |
| 163 | <div> |
| 164 | <h5 class="title"><a id="idp50418568"></a>bulkretrieval</h5> |
| 165 | </div> |
| 166 | </div> |
| 167 | </div> |
| 168 | <p>Same as that of begin(ReadModifyWrite, bool, BulkRetrievalOption, bool); </p> |
| 169 | </div> |
| 170 | </div> |
| 171 | <div class="sect3" lang="en" xml:lang="en"> |
| 172 | <div class="titlepage"> |
| 173 | <div> |
| 174 | <div> |
| 175 | <h4 class="title"><a id="idp50418888"></a>Return Value</h4> |
| 176 | </div> |
| 177 | </div> |
| 178 | </div> |
| 179 | <p>The created const iterator. </p> |
| 180 | </div> |
| 181 | <div class="sect3" lang="en" xml:lang="en"> |
| 182 | <div class="titlepage"> |
| 183 | <div> |
| 184 | <div> |
| 185 | <h4 class="title"><a id="idp50419208"></a>See Also</h4> |
| 186 | </div> |
| 187 | </div> |
| 188 | </div> |
| 189 | <p> |
| 190 | </p> |
| 191 | <p><a class="link" href="db_vector.html#stldb_vectorbegin" title="begin">db_vector::begin</a> |
| 192 | (ReadModifyWrite, bool, <a class="link" href="BulkRetrievalOption.html" title="Chapter 27. BulkRetrievalOption">BulkRetrievalOption</a> |
| 193 | , bool); </p> |
| 194 | <p> |
| 195 | </p> |
| 196 | </div> |
| 197 | </div> |
| 198 | <div class="sect2" lang="en" xml:lang="en"> |
| 199 | <div class="titlepage"> |
| 200 | <div> |
| 201 | <div> |
| 202 | <h3 class="title"><a id="idp50417832"></a>Group: Iterator Functions</h3> |
| 203 | </div> |
| 204 | </div> |
| 205 | </div> |
| 206 | <p>The parameters in begin functions of this group have identical meaning to thoes in <a class="link" href="db_vector.html#stldb_vectorbegin" title="begin">db_vector::begin</a> |
| 207 | , refer to those functions for details.</p> |
| 208 | <div class="simplesect" lang="en" xml:lang="en"> |
| 209 | <div class="titlepage"></div> |
| 210 | <p><a class="link" href="db_vector.html#stldb_vectorbegin" title="begin">db_vector::begin()</a> |
| 211 | </p> |
| 212 | </div> |
| 213 | <p> |
| 214 | </p> |
| 215 | </div> |
| 216 | <div class="sect2" lang="en" xml:lang="en"> |
| 217 | <div class="titlepage"> |
| 218 | <div> |
| 219 | <div> |
| 220 | <h3 class="title"><a id="idp50435768"></a>Class</h3> |
| 221 | </div> |
| 222 | </div> |
| 223 | </div> |
| 224 | <p> |
| 225 | <a class="link" href="db_map.html" title="Chapter 5. Db_map">db_map</a> |
| 226 | </p> |
| 227 | </div> |
| 228 | </div> |
| 229 | <div class="navfooter"> |
| 230 | <hr /> |
| 231 | <table width="100%" summary="Navigation footer"> |
| 232 | <tr> |
| 233 | <td width="40%" align="left"><a accesskey="p" href="stldb_mapinsert.html">Prev</a> </td> |
| 234 | <td width="20%" align="center"> |
| 235 | <a accesskey="u" href="db_map.html">Up</a> |
| 236 | </td> |
| 237 | <td width="40%" align="right"> <a accesskey="n" href="stldb_mapend.html">Next</a></td> |
| 238 | </tr> |
| 239 | <tr> |
| 240 | <td width="40%" align="left" valign="top">insert </td> |
| 241 | <td width="20%" align="center"> |
| 242 | <a accesskey="h" href="index.html">Home</a> |
| 243 | </td> |
| 244 | <td width="40%" align="right" valign="top"> end</td> |
| 245 | </tr> |
| 246 | </table> |
| 247 | </div> |
| 248 | </body> |
| 249 | </html> |