1
1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
2
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
3
<title>BitMagic: sample1.cpp File Reference</title>
3
<title>BitMagic: bm::bv_statistics Struct Reference</title>
4
4
<link href="doxygen.css" rel="stylesheet" type="text/css">
6
6
<!-- Generated by Doxygen 1.4.1 -->
7
7
<div class="qindex"><a class="qindex" href="index.html">Main Page</a> | <a class="qindex" href="modules.html">Modules</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Data Structures</a> | <a class="qindex" href="dirs.html">Directories</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="namespacemembers.html">Namespace Members</a> | <a class="qindex" href="functions.html">Data Fields</a> | <a class="qindex" href="globals.html">Globals</a> | <a class="qindex" href="examples.html">Examples</a></div>
9
<a class="el" href="dir_000001.html">samples</a> / <a class="el" href="dir_000002.html">sample1</a></div>
10
<h1>sample1.cpp File Reference</h1><code>#include <iostream></code><br>
11
<code>#include "<a class="el" href="a00102.html">bm.h</a>"</code><br>
14
Include dependency graph for sample1.cpp:<p><center><img src="a00144.png" border="0" usemap="#sample1.cpp_map" alt=""></center>
15
<map name="sample1.cpp_map">
16
<area href="a00074.html" shape="rect" coords="160,305,200,327" alt="">
17
<area href="a00076.html" shape="rect" coords="261,192,331,213" alt="">
18
<area href="a00077.html" shape="rect" coords="268,237,324,259" alt="">
19
<area href="a00079.html" shape="rect" coords="264,283,328,304" alt="">
20
<area href="a00078.html" shape="rect" coords="264,373,328,395" alt="">
21
<area href="a00081.html" shape="rect" coords="263,419,329,440" alt="">
22
<area href="a00082.html" shape="rect" coords="260,464,332,485" alt="">
23
<area href="a00080.html" shape="rect" coords="260,600,332,621" alt="">
9
<a class="el" href="a00129.html">bm</a>::<a class="el" href="a00083.html">bv_statistics</a></div>
10
<h1>bm::bv_statistics Struct Reference<br>
12
[<a class="el" href="a00132.html">The Main bvector<> Group</a>]</small>
13
</h1>Structure with statistical information about bitset's memory allocation details.
14
<a href="#_details">More...</a>
16
<code>#include <<a class="el" href="a00141.html">bmfunc.h</a>></code>
18
Inheritance diagram for bm::bv_statistics:<p><center><img src="a00215.png" border="0" usemap="#a00216" alt="Inheritance graph"></center>
20
<area href="a00093.html" shape="rect" coords="7,85,215,107" alt="">
27
<a href="a00111.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0">
22
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><table border="0" cellpadding="0" cellspacing="0">
29
<tr><td colspan="2"><br><h2>Namespaces</h2></td></tr>
30
<tr><td class="memItemLeft" nowrap align="right" valign="top">namespace </td><td class="memItemRight" valign="bottom"><a class="el" href="a00093.html">std</a></td></tr>
32
<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
33
<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="a00083.html#a0">main</a> (void)</td></tr>
24
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
25
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00083.html#a0">add_bit_block</a> ()</td></tr>
27
<tr><td class="mdescLeft"> </td><td class="mdescRight">cound bit block <a href="#a0"></a><br></td></tr>
28
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00083.html#a1">add_gap_block</a> (unsigned capacity, unsigned length)</td></tr>
30
<tr><td class="mdescLeft"> </td><td class="mdescRight">count gap block <a href="#a1"></a><br></td></tr>
31
<tr><td colspan="2"><br><h2>Data Fields</h2></td></tr>
32
<tr><td class="memItemLeft" nowrap align="right" valign="top">unsigned </td><td class="memItemRight" valign="bottom"><a class="el" href="a00083.html#o0">bit_blocks</a></td></tr>
34
<tr><td class="mdescLeft"> </td><td class="mdescRight">Number of bit blocks. <a href="#o0"></a><br></td></tr>
35
<tr><td class="memItemLeft" nowrap align="right" valign="top">unsigned </td><td class="memItemRight" valign="bottom"><a class="el" href="a00083.html#o1">gap_blocks</a></td></tr>
37
<tr><td class="mdescLeft"> </td><td class="mdescRight">Number of GAP blocks. <a href="#o1"></a><br></td></tr>
38
<tr><td class="memItemLeft" nowrap align="right" valign="top">unsigned </td><td class="memItemRight" valign="bottom"><a class="el" href="a00083.html#o2">max_serialize_mem</a></td></tr>
40
<tr><td class="mdescLeft"> </td><td class="mdescRight">Estimated maximum of memory required for serialization. <a href="#o2"></a><br></td></tr>
41
<tr><td class="memItemLeft" nowrap align="right" valign="top">unsigned </td><td class="memItemRight" valign="bottom"><a class="el" href="a00083.html#o3">memory_used</a></td></tr>
43
<tr><td class="mdescLeft"> </td><td class="mdescRight">Memory used by bitvector including temp and service blocks. <a href="#o3"></a><br></td></tr>
44
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="a00129.html#a36">gap_word_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="a00083.html#o4">gap_length</a> [<a class="el" href="a00129.html#a45">bm::set_total_blocks</a>]</td></tr>
46
<tr><td class="mdescLeft"> </td><td class="mdescRight">Array of all GAP block lengths in the bvector. <a href="#o4"></a><br></td></tr>
47
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="a00129.html#a36">gap_word_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="a00083.html#o5">gap_levels</a> [<a class="el" href="a00129.html#a40">bm::gap_levels</a>]</td></tr>
49
<tr><td class="mdescLeft"> </td><td class="mdescRight">GAP lengths used by bvector. <a href="#o5"></a><br></td></tr>
36
<hr><h2>Function Documentation</h2>
37
<a class="anchor" name="a0" doxytag="sample1.cpp::main"></a><p>
51
<hr><a name="_details"></a><h2>Detailed Description</h2>
52
Structure with statistical information about bitset's memory allocation details.
56
Definition at line <a class="el" href="a00141.html#l00046">46</a> of file <a class="el" href="a00141.html">bmfunc.h</a>.<hr><h2>Member Function Documentation</h2>
57
<a class="anchor" name="a0" doxytag="bm::bv_statistics::add_bit_block"></a><p>
38
58
<table class="mdTable" cellpadding="2" cellspacing="0">
41
61
<table cellpadding="0" cellspacing="0" border="0">
43
<td class="md" nowrap valign="top">int main </td>
63
<td class="md" nowrap valign="top">void bm::bv_statistics::add_bit_block </td>
44
64
<td class="md" valign="top">( </td>
45
<td class="md" nowrap valign="top">void </td>
46
65
<td class="mdname1" valign="top" nowrap> </td>
47
66
<td class="md" valign="top"> ) </td>
48
<td class="md" nowrap></td>
54
<table cellspacing="5" cellpadding="0" border="0">
62
<dl compact><dt><b>Examples: </b></dt><dd>
63
<a class="el" href="a00034.html#a0">sample1.cpp</a>, <a class="el" href="a00035.html#a9">sample2.cpp</a>, <a class="el" href="a00036.html#a15">sample3.cpp</a>, <a class="el" href="a00037.html#a25">sample4.cpp</a>, <a class="el" href="a00038.html#a29">sample5.cpp</a>, <a class="el" href="a00039.html#a36">sample6.cpp</a>, <a class="el" href="a00040.html#a49">sample7.cpp</a>, and <a class="el" href="a00042.html#a59">sample9.cpp</a>.</dl>
65
Definition at line <a class="el" href="a00111.html#l00044">44</a> of file <a class="el" href="a00111.html">sample1.cpp</a>.
67
References <a class="el" href="a00102.html#l01030">bm::bvector< Alloc, MS >::clear()</a>, <a class="el" href="a00102.html#l01603">bm::bvector< Alloc, MS >::count()</a>, <a class="el" href="a00102.html#l01211">bm::bvector< Alloc, MS >::get_first()</a>, <a class="el" href="a00102.html#l01220">bm::bvector< Alloc, MS >::get_next()</a>, and <a class="el" href="a00102.html#l00971">bm::bvector< Alloc, MS >::set()</a>. </td>
70
<hr size="1"><address style="align: right;"><small>Generated on Thu Apr 20 13:29:04 2006 for BitMagic by
67
<td class="md" nowrap><code> [inline]</code></td>
73
<table cellspacing="5" cellpadding="0" border="0">
85
Definition at line <a class="el" href="a00141.html#l00064">64</a> of file <a class="el" href="a00141.html">bmfunc.h</a>.
87
References <a class="el" href="a00141.html#l00049">bit_blocks</a>, <a class="el" href="a00141.html#l00053">max_serialize_mem</a>, and <a class="el" href="a00141.html#l00055">memory_used</a>. </td>
90
<a class="anchor" name="a1" doxytag="bm::bv_statistics::add_gap_block"></a><p>
91
<table class="mdTable" cellpadding="2" cellspacing="0">
94
<table cellpadding="0" cellspacing="0" border="0">
96
<td class="md" nowrap valign="top">void bm::bv_statistics::add_gap_block </td>
97
<td class="md" valign="top">( </td>
98
<td class="md" nowrap valign="top">unsigned </td>
99
<td class="mdname" nowrap> <em>capacity</em>, </td>
102
<td class="md" nowrap align="right"></td>
104
<td class="md" nowrap>unsigned </td>
105
<td class="mdname" nowrap> <em>length</em></td>
109
<td class="md">) </td>
110
<td class="md" colspan="2"><code> [inline]</code></td>
116
<table cellspacing="5" cellpadding="0" border="0">
128
Definition at line <a class="el" href="a00141.html#l00073">73</a> of file <a class="el" href="a00141.html">bmfunc.h</a>.
130
References <a class="el" href="a00141.html#l00051">gap_blocks</a>, <a class="el" href="a00141.html#l00053">max_serialize_mem</a>, and <a class="el" href="a00141.html#l00055">memory_used</a>. </td>
133
<hr><h2>Field Documentation</h2>
134
<a class="anchor" name="o0" doxytag="bm::bv_statistics::bit_blocks"></a><p>
135
<table class="mdTable" cellpadding="2" cellspacing="0">
138
<table cellpadding="0" cellspacing="0" border="0">
140
<td class="md" nowrap valign="top">unsigned <a class="el" href="a00083.html#o0">bm::bv_statistics::bit_blocks</a> </td>
146
<table cellspacing="5" cellpadding="0" border="0">
154
Number of bit blocks.
158
Definition at line <a class="el" href="a00141.html#l00049">49</a> of file <a class="el" href="a00141.html">bmfunc.h</a>.
160
Referenced by <a class="el" href="a00141.html#l00064">add_bit_block()</a>. </td>
163
<a class="anchor" name="o1" doxytag="bm::bv_statistics::gap_blocks"></a><p>
164
<table class="mdTable" cellpadding="2" cellspacing="0">
167
<table cellpadding="0" cellspacing="0" border="0">
169
<td class="md" nowrap valign="top">unsigned <a class="el" href="a00083.html#o1">bm::bv_statistics::gap_blocks</a> </td>
175
<table cellspacing="5" cellpadding="0" border="0">
183
Number of GAP blocks.
187
Definition at line <a class="el" href="a00141.html#l00051">51</a> of file <a class="el" href="a00141.html">bmfunc.h</a>.
189
Referenced by <a class="el" href="a00141.html#l00073">add_gap_block()</a>. </td>
192
<a class="anchor" name="o4" doxytag="bm::bv_statistics::gap_length"></a><p>
193
<table class="mdTable" cellpadding="2" cellspacing="0">
196
<table cellpadding="0" cellspacing="0" border="0">
198
<td class="md" nowrap valign="top"><a class="el" href="a00129.html#a36">gap_word_t</a> <a class="el" href="a00083.html#o4">bm::bv_statistics::gap_length</a>[<a class="el" href="a00129.html#a45">bm::set_total_blocks</a>] </td>
204
<table cellspacing="5" cellpadding="0" border="0">
212
Array of all GAP block lengths in the bvector.
216
Definition at line <a class="el" href="a00141.html#l00057">57</a> of file <a class="el" href="a00141.html">bmfunc.h</a>. </td>
219
<a class="anchor" name="o5" doxytag="bm::bv_statistics::gap_levels"></a><p>
220
<table class="mdTable" cellpadding="2" cellspacing="0">
223
<table cellpadding="0" cellspacing="0" border="0">
225
<td class="md" nowrap valign="top"><a class="el" href="a00129.html#a36">gap_word_t</a> <a class="el" href="a00083.html#o5">bm::bv_statistics::gap_levels</a>[<a class="el" href="a00129.html#a40">bm::gap_levels</a>] </td>
231
<table cellspacing="5" cellpadding="0" border="0">
239
GAP lengths used by bvector.
243
Definition at line <a class="el" href="a00141.html#l00059">59</a> of file <a class="el" href="a00141.html">bmfunc.h</a>. </td>
246
<a class="anchor" name="o2" doxytag="bm::bv_statistics::max_serialize_mem"></a><p>
247
<table class="mdTable" cellpadding="2" cellspacing="0">
250
<table cellpadding="0" cellspacing="0" border="0">
252
<td class="md" nowrap valign="top">unsigned <a class="el" href="a00083.html#o2">bm::bv_statistics::max_serialize_mem</a> </td>
258
<table cellspacing="5" cellpadding="0" border="0">
266
Estimated maximum of memory required for serialization.
270
Definition at line <a class="el" href="a00141.html#l00053">53</a> of file <a class="el" href="a00141.html">bmfunc.h</a>.
272
Referenced by <a class="el" href="a00141.html#l00064">add_bit_block()</a>, and <a class="el" href="a00141.html#l00073">add_gap_block()</a>. </td>
275
<a class="anchor" name="o3" doxytag="bm::bv_statistics::memory_used"></a><p>
276
<table class="mdTable" cellpadding="2" cellspacing="0">
279
<table cellpadding="0" cellspacing="0" border="0">
281
<td class="md" nowrap valign="top">unsigned <a class="el" href="a00083.html#o3">bm::bv_statistics::memory_used</a> </td>
287
<table cellspacing="5" cellpadding="0" border="0">
295
Memory used by bitvector including temp and service blocks.
299
Definition at line <a class="el" href="a00141.html#l00055">55</a> of file <a class="el" href="a00141.html">bmfunc.h</a>.
301
Referenced by <a class="el" href="a00141.html#l00064">add_bit_block()</a>, and <a class="el" href="a00141.html#l00073">add_gap_block()</a>. </td>
304
<hr>The documentation for this struct was generated from the following file:<ul>
305
<li><a class="el" href="a00141.html">bmfunc.h</a></ul>
306
<hr size="1"><address style="align: right;"><small>Generated on Sun Aug 5 14:12:40 2007 for BitMagic by
71
307
<a href="http://www.doxygen.org/index.html">
72
308
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.1 </small></address>