Debian Codegraph @

docs/programmer_reference/stl_usecase.html

raw symbols SCIP
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>Dbstl typical use cases</title>
7 <link rel="stylesheet" href="gettingStarted.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 Programmer's Reference Guide" />
10 <link rel="up" href="stl.html" title="Chapter 7. Standard Template Library API" />
11 <link rel="prev" href="stl.html" title="Chapter 7. Standard Template Library API" />
12 <link rel="next" href="stl_examples.html" title="Dbstl examples" />
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">Dbstl typical use cases</th>
22 </tr>
23 <tr>
24 <td width="20%" align="left"><a accesskey="p" href="stl.html">Prev</a> </td>
25 <th width="60%" align="center">Chapter 7. Standard Template Library API</th>
26 <td width="20%" align="right"> <a accesskey="n" href="stl_examples.html">Next</a></td>
27 </tr>
28 </table>
29 <hr />
30 </div>
31 <div class="sect1" lang="en" xml:lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="stl_usecase"></a>Dbstl typical use cases</h2></div></div></div>
32 Among others, the following are some typical use cases where dbstl would
33 be prefered over C++ STL:
34
35 <div class="itemizedlist"><ul type="disc"><li><p>
36 Working with a large amount of data, more than can reside in memory.
37 Using C++ STL would force a number of page swaps, which will degrade
38 performance. When using dbstl, data is stored in a database and Berkeley
39 DB ensures the needed data is in memory, so that the overall performance
40 of the machine is not slowed down.
41 </p></li><li><p>
42 Familiar Interface. dbstl provides a familiar interface to Berkeley DB,
43 hiding the marshalling and unmashalling details and automatically
44 managing Berkeley DB structures and objects.
45 </p></li><li><p>
46 Transaction semantics. dbstl provides the ACID properties (or a subset of
47 the ACID properties) in addition to supporting all of the STL
48 functionality.
49 </p></li><li><p>
50 Concurrent access. Few (if any) existing C++ STL implementations support
51 reading/writing to the same container concurrently, dbstl does.
52 </p></li><li><p>
53 Object persistence. dbstl allows your application to store objects in a
54 database, and use the objects across different runs of your application.
55 dbstl is capable of storing complicated objects which are not located in
56 a contiguous chunk of memory, with some user configurations.
57 </p></li></ul></div></div>
58 <div class="navfooter">
59 <hr />
60 <table width="100%" summary="Navigation footer">
61 <tr>
62 <td width="40%" align="left"><a accesskey="p" href="stl.html">Prev</a> </td>
63 <td width="20%" align="center">
64 <a accesskey="u" href="stl.html">Up</a>
65 </td>
66 <td width="40%" align="right"> <a accesskey="n" href="stl_examples.html">Next</a></td>
67 </tr>
68 <tr>
69 <td width="40%" align="left" valign="top">Chapter 7. Standard Template Library API </td>
70 <td width="20%" align="center">
71 <a accesskey="h" href="index.html">Home</a>
72 </td>
73 <td width="40%" align="right" valign="top"> Dbstl examples</td>
74 </tr>
75 </table>
76 </div>
77 </body>
78 </html>