• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src/router/db-4.8.30/docs/api_reference/STL/
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 class="navheader">
16      <table width="100%" summary="Navigation header">
17        <tr>
18          <th colspan="3" align="center">Chapter 2. 
19 Dbstl Container Classes  </th>
20        </tr>
21        <tr>
22          <td width="20%" align="left"><a accesskey="p" href="stldbstl_global_functionsclose_db_cursors.html">Prev</a> </td>
23          <th width="60%" align="center"> </th>
24          <td width="20%" align="right"> <a accesskey="n" href="db_container.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="dbstl_containers"></a>Chapter 2. 
34 Dbstl Container Classes  </h2>
35          </div>
36        </div>
37      </div>
38      <p>A dbstl container is very much like a C++ STL container. </p>
39      <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>
40 and <a class="link" href="stldbstl_global_functionsopen_env.html" title="open_env">dbstl::open_env()</a>
41; </p>
42      <h4><a id="id1541063"></a>
43See Also
44</h4>
45      <p> </p>
46      <p><a class="link" href="stldbstl_global_functionsopen_db.html" title="open_db">dbstl::open_db()</a>
47 <a class="link" href="stldbstl_global_functionsopen_env.html" title="open_env">dbstl::open_env()</a>
48 <a class="link" href="db_vector.html" title="Chapter 4.  Db_vector">db_vector</a>
49 <a class="link" href="db_map.html" title="Chapter 5.  Db_map">db_map</a>
50 <a class="link" href="db_multimap.html" title="Chapter 6.  Db_multimap">db_multimap</a>
51 <a class="link" href="db_set.html" title="Chapter 7.  Db_set">db_set</a>
52 <a class="link" href="db_multiset.html" title="Chapter 8.  Db_multiset">db_multiset</a>
53 </p>
54      <h4><a id="id1543847"></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="link" href="db_container.html" title="Chapter 3.  Db_container">
71db_container</a>
72</td>
73              <td>
74db_container</td>
75            </tr>
76            <tr>
77              <td>
78<a class="link" href="db_map.html" title="Chapter 5.  Db_map">
79db_map</a>
80</td>
81              <td>
82db_map</td>
83            </tr>
84            <tr>
85              <td>
86<a class="link" href="db_multimap.html" title="Chapter 6.  Db_multimap">
87db_multimap</a>
88</td>
89              <td>
90db_multimap</td>
91            </tr>
92            <tr>
93              <td>
94<a class="link" href="db_set.html" title="Chapter 7.  Db_set">
95db_set</a>
96</td>
97              <td>
98db_set</td>
99            </tr>
100            <tr>
101              <td>
102<a class="link" href="db_multiset.html" title="Chapter 8.  Db_multiset">
103db_multiset</a>
104</td>
105              <td>
106db_multiset</td>
107            </tr>
108            <tr>
109              <td>
110<a class="link" href="db_vector.html" title="Chapter 4.  Db_vector">
111db_vector</a>
112</td>
113              <td>
114db_vector</td>
115            </tr>
116          </tbody>
117        </table>
118      </div>
119      <h4><a id="id1543838"></a>
120Group</h4>
121      <p>
122None</p>
123    </div>
124    <div class="navfooter">
125      <hr />
126      <table width="100%" summary="Navigation footer">
127        <tr>
128          <td width="40%" align="left"><a accesskey="p" href="stldbstl_global_functionsclose_db_cursors.html">Prev</a> </td>
129          <td width="20%" align="center"> </td>
130          <td width="40%" align="right"> <a accesskey="n" href="db_container.html">Next</a></td>
131        </tr>
132        <tr>
133          <td width="40%" align="left" valign="top">
134close_db_cursors
135 </td>
136          <td width="20%" align="center">
137            <a accesskey="h" href="index.html">Home</a>
138          </td>
139          <td width="40%" align="right" valign="top"> Chapter 3. 
140 Db_container  </td>
141        </tr>
142      </table>
143    </div>
144  </body>
145</html>
146