• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt/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��3.�� Db_container</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="dbstl_containers.html" title="Chapter��2.�� Dbstl Container Classes" />
12    <link rel="next" href="stldb_containerget_db_set_flags.html" title="get_db_set_flags" />
13  </head>
14  <body>
15    <div class="navheader">
16      <table width="100%" summary="Navigation header">
17        <tr>
18          <th colspan="3" align="center">Chapter��3.��
19 Db_container  </th>
20        </tr>
21        <tr>
22          <td width="20%" align="left"><a accesskey="p" href="dbstl_containers.html">Prev</a>��</td>
23          <th width="60%" align="center">��</th>
24          <td width="20%" align="right">��<a accesskey="n" href="stldb_containerget_db_set_flags.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_container"></a>Chapter��3.��
34 Db_container  </h2>
35          </div>
36        </div>
37      </div>
38      <p>This class is the base class for all db container classes, you don't directly use this class, but all container classes inherit from this class, so you need to know the methods that can be accessed via concrete container classes. </p>
39      <p>This class is also used to support auto commit transactions. Autocommit is enabled when DB_AUTO_COMMIT is set to the database or database environment handle and the environment is transactional.</p>
40      <p>Inside dbstl, there are transactions begun and committed/aborted if the backing database and/or environment requires auto commit, and there are cursors opened internally, and you can set the flags used by the transaction and cursor functions via set functions of this class.</p>
41      <p>All dbstl containers are fully multi-threaded, you should not need any synchronization to use them in the correct way, but this class is not thread safe, access to its members are not proctected by any mutex because the data members of this class are supposed to be set before they are used, and remain read only afterwards. If this is not the case, you must synchronize the access. </p>
42      <h4><a id="id1543698"></a> Public Members </h4>
43      <div class="informaltable">
44        <table border="1" width="80%">
45          <colgroup>
46            <col />
47            <col />
48          </colgroup>
49          <thead>
50            <tr>
51              <th>Member</th>
52              <th>Description</th>
53            </tr>
54          </thead>
55          <tbody>
56            <tr>
57              <td>
58<a class="xref" href="db_container.html#stldb_containerget_db_open_flags" title="get_db_open_flags">
59get_db_open_flags
60</a>
61</td>
62              <td>
63   <p>Get the backing database's open flags. </p>        </td>
64            </tr>
65            <tr>
66              <td>
67<a class="xref" href="stldb_containerget_db_set_flags.html" title="get_db_set_flags">
68get_db_set_flags
69</a>
70</td>
71              <td>
72   <p>Get the backing database's flags that are set via Db::set_flags() function. </p>        </td>
73            </tr>
74            <tr>
75              <td>
76<a class="xref" href="stldb_containerget_db_handle.html" title="get_db_handle">
77get_db_handle
78</a>
79</td>
80              <td>
81   <p>Get the backing database's handle. </p>        </td>
82            </tr>
83            <tr>
84              <td>
85<a class="xref" href="stldb_containerget_db_env_handle.html" title="get_db_env_handle">
86get_db_env_handle
87</a>
88</td>
89              <td>
90   <p>Get the backing database environment's handle. </p>        </td>
91            </tr>
92            <tr>
93              <td>
94<a class="xref" href="stldb_containerset_db_handle.html" title="set_db_handle">
95set_db_handle
96</a>
97</td>
98              <td>
99   <p>Set the underlying database's handle, and optionally environment handle if the environment has also changed. </p>        </td>
100            </tr>
101            <tr>
102              <td>
103<a class="xref" href="stldb_containerset_all_flags.html" title="set_all_flags">
104set_all_flags
105</a>
106</td>
107              <td>
108   <p>Set the flags required by the Berkeley DB functions DbEnv::txn_begin(), DbTxn::commit() and DbEnv::cursor(). </p>        </td>
109            </tr>
110            <tr>
111              <td>
112<a class="xref" href="stldb_containerset_txn_begin_flags.html" title="set_txn_begin_flags">
113set_txn_begin_flags
114</a>
115</td>
116              <td>
117   <p>Set flag of DbEnv::txn_begin() call. </p>        </td>
118            </tr>
119            <tr>
120              <td>
121<a class="xref" href="stldb_containerget_txn_begin_flags.html" title="get_txn_begin_flags">
122get_txn_begin_flags
123</a>
124</td>
125              <td>
126   <p>Get flag of DbEnv::txn_begin() call. </p>        </td>
127            </tr>
128            <tr>
129              <td>
130<a class="xref" href="stldb_containerset_commit_flags.html" title="set_commit_flags">
131set_commit_flags
132</a>
133</td>
134              <td>
135   <p>Set flag of DbTxn::commit() call. </p>        </td>
136            </tr>
137            <tr>
138              <td>
139<a class="xref" href="stldb_containerget_commit_flags.html" title="get_commit_flags">
140get_commit_flags
141</a>
142</td>
143              <td>
144   <p>Get flag of DbTxn::commit() call. </p>        </td>
145            </tr>
146            <tr>
147              <td>
148<a class="xref" href="stldb_containerget_cursor_open_flags.html" title="get_cursor_open_flags">
149get_cursor_open_flags
150</a>
151</td>
152              <td>
153   <p>Get flag of Db::cursor() call. </p>        </td>
154            </tr>
155            <tr>
156              <td>
157<a class="xref" href="stldb_containerset_cursor_open_flags.html" title="set_cursor_open_flags">
158set_cursor_open_flags
159</a>
160</td>
161              <td>
162   <p>Set flag of Db::cursor() call. </p>        </td>
163            </tr>
164            <tr>
165              <td>
166<a class="xref" href="stldb_containerdb_container.html" title="db_container">
167db_container
168</a>
169</td>
170              <td>
171   <p>Default constructor. </p>        </td>
172            </tr>
173            <tr>
174              <td>
175<a class="xref" href="stldb_containerdstr_db_container.html" title="~db_container">
176~db_container
177</a>
178</td>
179              <td>
180   <p>The backing database is not closed in this function. </p>        </td>
181            </tr>
182          </tbody>
183        </table>
184      </div>
185      <h4><a id="id1544020"></a>
186Group</h4>
187      <p>
188<a class="xref" href="dbstl_containers.html" title="Chapter��2.�� Dbstl Container Classes">
189 Dbstl Container Classes  </a>
190</p>
191      <p>
192</p>
193      <div class="sect1" lang="en" xml:lang="en">
194        <div class="titlepage">
195          <div>
196            <div>
197              <h2 class="title" style="clear: both"><a id="stldb_containerget_db_open_flags"></a>
198get_db_open_flags
199</h2>
200            </div>
201          </div>
202        </div>
203        <div class="sect2" lang="en" xml:lang="en">
204          <div class="titlepage">
205            <div>
206              <div>
207                <h3 class="title"><a id="func_details"></a>
208Function Details</h3>
209              </div>
210            </div>
211          </div>
212          <pre class="programlisting">
213u_int32_t��get_db_open_flags()��const
214 </pre>
215          <div class="sect3" lang="en" xml:lang="en">
216            <div class="titlepage"></div>
217            <p>Get the backing database's open flags. </p>
218            <p></p>
219          </div>
220          <div class="sect3" lang="en" xml:lang="en">
221            <div class="titlepage">
222              <div>
223                <div>
224                  <h4 class="title"><a id="id1544016"></a>
225Return Value</h4>
226                </div>
227              </div>
228            </div>
229            <p>The backing database's open flags. </p>
230          </div>
231        </div>
232        <div class="sect2" lang="en" xml:lang="en">
233          <div class="titlepage">
234            <div>
235              <div>
236                <h3 class="title"><a id="id1544142"></a>
237Group: Get and set functions for data members.</h3>
238              </div>
239            </div>
240          </div>
241          <p>Note that these functions are not thread safe, because all data members of <a class="link" href="db_container.html" title="Chapter��3.�� Db_container">db_container</a>
242 are supposed to be set on container construction and initialization, and remain read only afterwards. </p>
243        </div>
244        <div class="sect2" lang="en" xml:lang="en">
245          <div class="titlepage">
246            <div>
247              <div>
248                <h3 class="title"><a id="id1543917"></a>
249Class</h3>
250              </div>
251            </div>
252          </div>
253          <p>
254  <a class="link" href="db_container.html" title="Chapter��3.�� Db_container">
255  db_container</a>
256     </p>
257        </div>
258      </div>
259    </div>
260    <div class="navfooter">
261      <hr />
262      <table width="100%" summary="Navigation footer">
263        <tr>
264          <td width="40%" align="left"><a accesskey="p" href="dbstl_containers.html">Prev</a>��</td>
265          <td width="20%" align="center">��</td>
266          <td width="40%" align="right">��<a accesskey="n" href="stldb_containerget_db_set_flags.html">Next</a></td>
267        </tr>
268        <tr>
269          <td width="40%" align="left" valign="top">Chapter��2.��
270 Dbstl Container Classes  ��</td>
271          <td width="20%" align="center">
272            <a accesskey="h" href="index.html">Home</a>
273          </td>
274          <td width="40%" align="right" valign="top">��
275get_db_set_flags
276</td>
277        </tr>
278      </table>
279    </div>
280  </body>
281</html>
282