| 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 2. Dbstl Container Classes</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="stldbstl_global_functionsclose_db_cursors.html" title="close_db_cursors" /> |
| 12 | <link rel="next" href="db_container.html" title="Chapter 3. Db_container" /> |
| 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">Chapter 2. |
| 22 | Dbstl Container Classes </th> |
| 23 | </tr> |
| 24 | <tr> |
| 25 | <td width="20%" align="left"><a accesskey="p" href="stldbstl_global_functionsclose_db_cursors.html">Prev</a> </td> |
| 26 | <th width="60%" align="center"> </th> |
| 27 | <td width="20%" align="right"> <a accesskey="n" href="db_container.html">Next</a></td> |
| 28 | </tr> |
| 29 | </table> |
| 30 | <hr /> |
| 31 | </div> |
| 32 | <div class="chapter" lang="en" xml:lang="en"> |
| 33 | <div class="titlepage"> |
| 34 | <div> |
| 35 | <div> |
| 36 | <h2 class="title"><a id="dbstl_containers"></a>Chapter 2. |
| 37 | Dbstl Container Classes </h2> |
| 38 | </div> |
| 39 | </div> |
| 40 | </div> |
| 41 | <p>A dbstl container is very much like a C++ STL container. </p> |
| 42 | <p>It stores a collection of data items, or key/data pairs. Each container is backed by a Berkeley DB database created in an explicit database environment or an internal private environment; And the database itself can be created explicitly with all kinds of configurations, or by dbstl internally. For each type of container, some specific type of database and/or configurations must be used or specified to the database and its environment. dbstl will check the database and environment conform to the requirement. When users don't have a chance to specify a container's backing database and environment, like in copy constructors, dbstl will create proper databases and/or environment for it. There are two helper functions to make it easier to create/open an environment or database, they are <a class="link" href="stldbstl_global_functionsopen_db.html" title="open_db">dbstl::open_db()</a> |
| 43 | and <a class="link" href="stldbstl_global_functionsopen_env.html" title="open_env">dbstl::open_env()</a> |
| 44 | ; </p> |
| 45 | <h4><a id="idp49964032"></a> |
| 46 | See Also |
| 47 | </h4> |
| 48 | <p> </p> |
| 49 | <p><a class="link" href="stldbstl_global_functionsopen_db.html" title="open_db">dbstl::open_db()</a> |
| 50 | <a class="link" href="stldbstl_global_functionsopen_env.html" title="open_env">dbstl::open_env()</a> |
| 51 | <a class="link" href="db_vector.html" title="Chapter 4. Db_vector">db_vector</a> |
| 52 | <a class="link" href="db_map.html" title="Chapter 5. Db_map">db_map</a> |
| 53 | <a class="link" href="db_multimap.html" title="Chapter 6. Db_multimap">db_multimap</a> |
| 54 | <a class="link" href="db_set.html" title="Chapter 7. Db_set">db_set</a> |
| 55 | <a class="link" href="db_multiset.html" title="Chapter 8. Db_multiset">db_multiset</a> |
| 56 | </p> |
| 57 | <h4><a id="idp49987264"></a> Public Members </h4> |
| 58 | <div class="informaltable"> |
| 59 | <table border="1" width="80%"> |
| 60 | <colgroup> |
| 61 | <col /> |
| 62 | <col /> |
| 63 | </colgroup> |
| 64 | <thead> |
| 65 | <tr> |
| 66 | <th>Member</th> |
| 67 | <th>Description</th> |
| 68 | </tr> |
| 69 | </thead> |
| 70 | <tbody> |
| 71 | <tr> |
| 72 | <td> |
| 73 | <a class="link" href="db_container.html" title="Chapter 3. Db_container"> |
| 74 | db_container</a> |
| 75 | </td> |
| 76 | <td> |
| 77 | db_container</td> |
| 78 | </tr> |
| 79 | <tr> |
| 80 | <td> |
| 81 | <a class="link" href="db_map.html" title="Chapter 5. Db_map"> |
| 82 | db_map</a> |
| 83 | </td> |
| 84 | <td> |
| 85 | db_map</td> |
| 86 | </tr> |
| 87 | <tr> |
| 88 | <td> |
| 89 | <a class="link" href="db_multimap.html" title="Chapter 6. Db_multimap"> |
| 90 | db_multimap</a> |
| 91 | </td> |
| 92 | <td> |
| 93 | db_multimap</td> |
| 94 | </tr> |
| 95 | <tr> |
| 96 | <td> |
| 97 | <a class="link" href="db_set.html" title="Chapter 7. Db_set"> |
| 98 | db_set</a> |
| 99 | </td> |
| 100 | <td> |
| 101 | db_set</td> |
| 102 | </tr> |
| 103 | <tr> |
| 104 | <td> |
| 105 | <a class="link" href="db_multiset.html" title="Chapter 8. Db_multiset"> |
| 106 | db_multiset</a> |
| 107 | </td> |
| 108 | <td> |
| 109 | db_multiset</td> |
| 110 | </tr> |
| 111 | <tr> |
| 112 | <td> |
| 113 | <a class="link" href="db_vector.html" title="Chapter 4. Db_vector"> |
| 114 | db_vector</a> |
| 115 | </td> |
| 116 | <td> |
| 117 | db_vector</td> |
| 118 | </tr> |
| 119 | </tbody> |
| 120 | </table> |
| 121 | </div> |
| 122 | <h4><a id="idp49983104"></a> |
| 123 | Group</h4> |
| 124 | <p> |
| 125 | None</p> |
| 126 | </div> |
| 127 | <div class="navfooter"> |
| 128 | <hr /> |
| 129 | <table width="100%" summary="Navigation footer"> |
| 130 | <tr> |
| 131 | <td width="40%" align="left"><a accesskey="p" href="stldbstl_global_functionsclose_db_cursors.html">Prev</a> </td> |
| 132 | <td width="20%" align="center"> </td> |
| 133 | <td width="40%" align="right"> <a accesskey="n" href="db_container.html">Next</a></td> |
| 134 | </tr> |
| 135 | <tr> |
| 136 | <td width="40%" align="left" valign="top">close_db_cursors </td> |
| 137 | <td width="20%" align="center"> |
| 138 | <a accesskey="h" href="index.html">Home</a> |
| 139 | </td> |
| 140 | <td width="40%" align="right" valign="top"> Chapter 3. |
| 141 | Db_container </td> |
| 142 | </tr> |
| 143 | </table> |
| 144 | </div> |
| 145 | </body> |
| 146 | </html> |