• 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>size</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_mapbucket_count.html" title="bucket_count" />
12    <link rel="next" href="stldb_mapmax_size.html" title="max_size" />
13  </head>
14  <body>
15    <div class="navheader">
16      <table width="100%" summary="Navigation header">
17        <tr>
18          <th colspan="3" align="center">
19size
20</th>
21        </tr>
22        <tr>
23          <td width="20%" align="left"><a accesskey="p" href="stldb_mapbucket_count.html">Prev</a> </td>
24          <th width="60%" align="center">Chapter 5. 
25 Db_map  </th>
26          <td width="20%" align="right"> <a accesskey="n" href="stldb_mapmax_size.html">Next</a></td>
27        </tr>
28      </table>
29      <hr />
30    </div>
31    <div class="sect1" lang="en" xml:lang="en">
32      <div class="titlepage">
33        <div>
34          <div>
35            <h2 class="title" style="clear: both"><a id="stldb_mapsize"></a>
36size
37</h2>
38          </div>
39        </div>
40      </div>
41      <div class="sect2" lang="en" xml:lang="en">
42        <div class="titlepage">
43          <div>
44            <div>
45              <h3 class="title"><a id="func_details"></a>
46Function Details</h3>
47            </div>
48          </div>
49        </div>
50        <pre class="programlisting">
51size_type size(bool accurate=true) const
52 </pre>
53        <div class="sect3" lang="en" xml:lang="en">
54          <div class="titlepage"></div>
55          <p>This function supports auto-commit. </p>
56          <p></p>
57        </div>
58        <div class="sect3" lang="en" xml:lang="en">
59          <div class="titlepage">
60            <div>
61              <div>
62                <h4 class="title"><a id="id1551669"></a>
63Parameters</h4>
64              </div>
65            </div>
66          </div>
67          <div class="sect4" lang="en" xml:lang="en">
68            <div class="titlepage">
69              <div>
70                <div>
71                  <h5 class="title"><a id="id1551819"></a>
72 accurate </h5>
73                </div>
74              </div>
75            </div>
76            <p>This function uses database's statistics to get the number of key/data pairs. The statistics mechanism will either scan the whole database to find the accurate number or use the number of last accurate scanning, and thus much faster. If there are millions of key/data pairs, the scanning can take some while, so in that case you may want to set the "accurate" parameter to false. </p>
77          </div>
78        </div>
79        <div class="sect3" lang="en" xml:lang="en">
80          <div class="titlepage">
81            <div>
82              <div>
83                <h4 class="title"><a id="id1551901"></a>
84Return Value</h4>
85              </div>
86            </div>
87          </div>
88          <p>Return the number of key/data pairs in the container. </p>
89        </div>
90      </div>
91      <div class="sect2" lang="en" xml:lang="en">
92        <div class="titlepage">
93          <div>
94            <div>
95              <h3 class="title"><a id="id1551817"></a>
96Group: Metadata Functions</h3>
97            </div>
98          </div>
99        </div>
100        <p>These functions return metadata about the container. </p>
101      </div>
102      <div class="sect2" lang="en" xml:lang="en">
103        <div class="titlepage">
104          <div>
105            <div>
106              <h3 class="title"><a id="id1551645"></a>
107Class</h3>
108            </div>
109          </div>
110        </div>
111        <p>
112  <a class="link" href="db_map.html" title="Chapter 5.  Db_map">
113  db_map</a>
114     </p>
115      </div>
116    </div>
117    <div class="navfooter">
118      <hr />
119      <table width="100%" summary="Navigation footer">
120        <tr>
121          <td width="40%" align="left"><a accesskey="p" href="stldb_mapbucket_count.html">Prev</a> </td>
122          <td width="20%" align="center">
123            <a accesskey="u" href="db_map.html">Up</a>
124          </td>
125          <td width="40%" align="right"> <a accesskey="n" href="stldb_mapmax_size.html">Next</a></td>
126        </tr>
127        <tr>
128          <td width="40%" align="left" valign="top">
129bucket_count
130 </td>
131          <td width="20%" align="center">
132            <a accesskey="h" href="index.html">Home</a>
133          </td>
134          <td width="40%" align="right" valign="top"135max_size
136</td>
137        </tr>
138      </table>
139    </div>
140  </body>
141</html>
142