29
29
<div class="contents">
30
<h1>sample8.cpp File Reference</h1><code>#include <iostream></code><br/>
31
<code>#include <algorithm></code><br/>
32
<code>#include <vector></code><br/>
33
<code>#include <list></code><br/>
34
<code>#include "<a class="el" href="a00084_source.html">bm.h</a>"</code><br/>
30
<h1>sample3.cpp File Reference</h1><code>#include <stdlib.h></code><br/>
31
<code>#include <iostream></code><br/>
32
<code>#include "<a class="el" href="a00087_source.html">bm.h</a>"</code><br/>
35
33
<div class="dynheader">
36
Include dependency graph for sample8.cpp:</div>
34
Include dependency graph for sample3.cpp:</div>
37
35
<div class="dynsection">
38
<div class="center"><img src="a00156.png" border="0" usemap="#sample8_8cpp_map" alt=""/></div>
39
<map name="sample8_8cpp_map" id="sample8_8cpp">
40
<area shape="rect" href="a00084.html" title="bm.h" alt="" coords="451,83,501,112"/><area shape="rect" href="a00088.html" title="bmconst.h" alt="" coords="99,315,181,344"/><area shape="rect" href="a00089.html" title="bmdef.h" alt="" coords="341,315,408,344"/><area shape="rect" href="a00093.html" title="bmsse2.h" alt="" coords="437,160,515,189"/><area shape="rect" href="a00090.html" title="bmfunc.h" alt="" coords="288,160,363,189"/><area shape="rect" href="a00099.html" title="bmvmin.h" alt="" coords="632,160,709,189"/><area shape="rect" href="a00100.html" title="encoding.h" alt="" coords="181,160,264,189"/><area shape="rect" href="a00087.html" title="bmalloc.h" alt="" coords="733,160,811,189"/><area shape="rect" href="a00097.html" title="bmundef.h" alt="" coords="947,160,1029,189"/><area shape="rect" href="a00095.html" title="bmsse_util.h" alt="" coords="707,237,803,267"/><area shape="rect" href="a00098.html" title="bmutil.h" alt="" coords="141,237,208,267"/></map>
36
<div class="center"><img src="a00159.png" border="0" usemap="#sample3_8cpp_map" alt=""/></div>
37
<map name="sample3_8cpp_map" id="sample3_8cpp">
38
<area shape="rect" href="a00087.html" title="bm.h" alt="" coords="485,83,536,112"/><area shape="rect" href="a00091.html" title="bmconst.h" alt="" coords="235,315,317,344"/><area shape="rect" href="a00092.html" title="bmdef.h" alt="" coords="440,315,507,344"/><area shape="rect" href="a00098.html" title="bmsse4.h" alt="" coords="588,160,665,189"/><area shape="rect" href="a00093.html" title="bmfunc.h" alt="" coords="332,160,407,189"/><area shape="rect" href="a00103.html" title="bmvmin.h" alt="" coords="783,160,860,189"/><area shape="rect" href="a00104.html" title="encoding.h" alt="" coords="431,160,513,189"/><area shape="rect" href="a00090.html" title="bmalloc.h" alt="" coords="75,160,152,189"/><area shape="rect" href="a00101.html" title="bmundef.h" alt="" coords="996,160,1079,189"/><area shape="rect" href="a00099.html" title="bmsse_util.h" alt="" coords="969,237,1065,267"/><area shape="rect" href="a00102.html" title="bmutil.h" alt="" coords="292,237,359,267"/></map>
43
41
<p><a href="a00108_source.html">Go to the source code of this file.</a></p>
44
42
<table border="0" cellpadding="0" cellspacing="0">
45
43
<tr><td colspan="2"><h2>Functions</h2></td></tr>
46
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00108.html#a80085d7c877f4c6f36d10c67dc163845">Print</a> (unsigned n)</td></tr>
47
<tr><td class="memTemplParams" colspan="2">template<class T > </td></tr>
48
<tr><td class="memTemplItemLeft" align="right" valign="top">void </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00108.html#ab7f435443f8dbf9f50e4ad0efea8b1f8">PrintContainer</a> (T first, T last)</td></tr>
44
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00108.html#a6c4e3c21afef90ce9111f8f5e60d4c13">fill_bvector</a> (<a class="el" href="a00044.html">bm::bvector</a><> *bv1, <a class="el" href="a00044.html">bm::bvector</a><> *bv2)</td></tr>
45
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00108.html#aeb4ca6f0a986ad6ae67d1f7124fdc400">print_statistics</a> (const <a class="el" href="a00044.html">bm::bvector</a><> &bv)</td></tr>
49
46
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="a00108.html#a840291bc02cba5474a4cb46a9b9566fe">main</a> (void)</td></tr>
47
<tr><td colspan="2"><h2>Variables</h2></td></tr>
48
<tr><td class="memItemLeft" align="right" valign="top">const unsigned </td><td class="memItemRight" valign="bottom"><a class="el" href="a00108.html#a8652d848be89c1f9b0a77327ee32fc0f">MAX_VALUE</a> = 1000000</td></tr>
51
50
<hr/><h2>Function Documentation</h2>
52
<a class="anchor" id="a840291bc02cba5474a4cb46a9b9566fe"></a><!-- doxytag: member="sample8.cpp::main" ref="a840291bc02cba5474a4cb46a9b9566fe" args="(void)" -->
51
<a class="anchor" id="a6c4e3c21afef90ce9111f8f5e60d4c13"></a><!-- doxytag: member="sample3.cpp::fill_bvector" ref="a6c4e3c21afef90ce9111f8f5e60d4c13" args="(bm::bvector<> *bv1, bm::bvector<> *bv2)" -->
53
<div class="memproto">
54
<table class="memname">
56
<td class="memname">void fill_bvector </td>
58
<td class="paramtype"><a class="el" href="a00044.html">bm::bvector</a><> * </td>
59
<td class="paramname"> <em>bv1</em>, </td>
62
<td class="paramkey"></td>
64
<td class="paramtype"><a class="el" href="a00044.html">bm::bvector</a><> * </td>
65
<td class="paramname"> <em>bv2</em></td><td> </td>
70
<td></td><td></td><td></td>
75
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="a00003.html#a1">sample3.cpp</a>, and <a class="el" href="a00004.html#a1">sample4.cpp</a>.</dd>
77
<p>Definition at line <a class="el" href="a00108_source.html#l00049">49</a> of file <a class="el" href="a00108_source.html">sample3.cpp</a>.</p>
79
<p>References <a class="el" href="a00108_source.html#l00043">MAX_VALUE</a>, and <a class="el" href="a00087_source.html#l00959">bm::bvector< Alloc, MS >::set_bit()</a>.</p>
81
<p>Referenced by <a class="el" href="a00108_source.html#l00075">main()</a>.</p>
85
<a class="anchor" id="a840291bc02cba5474a4cb46a9b9566fe"></a><!-- doxytag: member="sample3.cpp::main" ref="a840291bc02cba5474a4cb46a9b9566fe" args="(void)" -->
53
86
<div class="memitem">
54
87
<div class="memproto">
55
88
<table class="memname">
66
99
<div class="memdoc">
68
<p>Definition at line <a class="el" href="a00108_source.html#l00069">69</a> of file <a class="el" href="a00108_source.html">sample8.cpp</a>.</p>
70
<p>References <a class="el" href="a00084_source.html#l01641">bm::bvector< Alloc, MS >::count()</a>, <a class="el" href="a00084_source.html#l01440">bm::bvector< Alloc, MS >::end()</a>, <a class="el" href="a00084_source.html#l01430">bm::bvector< Alloc, MS >::first()</a>, <a class="el" href="a00084_source.html#l01026">bm::bvector< Alloc, MS >::inserter()</a>, and <a class="el" href="a00108_source.html#l00059">PrintContainer()</a>.</p>
74
<a class="anchor" id="a80085d7c877f4c6f36d10c67dc163845"></a><!-- doxytag: member="sample8.cpp::Print" ref="a80085d7c877f4c6f36d10c67dc163845" args="(unsigned n)" -->
101
<p>Definition at line <a class="el" href="a00108_source.html#l00075">75</a> of file <a class="el" href="a00108_source.html">sample3.cpp</a>.</p>
103
<p>References <a class="el" href="a00091_source.html#l00117">bm::BM_GAP</a>, <a class="el" href="a00108_source.html#l00049">fill_bvector()</a>, <a class="el" href="a00087_source.html#l01842">bm::bvector< Alloc, MS >::optimize()</a>, <a class="el" href="a00108_source.html#l00062">print_statistics()</a>, and <a class="el" href="a00087_source.html#l01331">bm::bvector< Alloc, MS >::set_new_blocks_strat()</a>.</p>
107
<a class="anchor" id="aeb4ca6f0a986ad6ae67d1f7124fdc400"></a><!-- doxytag: member="sample3.cpp::print_statistics" ref="aeb4ca6f0a986ad6ae67d1f7124fdc400" args="(const bm::bvector<> &bv)" -->
75
108
<div class="memitem">
76
109
<div class="memproto">
77
110
<table class="memname">
79
<td class="memname">void Print </td>
112
<td class="memname">void print_statistics </td>
81
<td class="paramtype">unsigned </td>
82
<td class="paramname"> <em>n</em></td>
114
<td class="paramtype">const <a class="el" href="a00044.html">bm::bvector</a><> & </td>
115
<td class="paramname"> <em>bv</em></td>
83
116
<td> ) </td>
88
121
<div class="memdoc">
90
<p>Definition at line <a class="el" href="a00108_source.html#l00053">53</a> of file <a class="el" href="a00108_source.html">sample8.cpp</a>.</p>
94
<a class="anchor" id="ab7f435443f8dbf9f50e4ad0efea8b1f8"></a><!-- doxytag: member="sample8.cpp::PrintContainer" ref="ab7f435443f8dbf9f50e4ad0efea8b1f8" args="(T first, T last)" -->
122
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="a00003.html#a4">sample3.cpp</a>, and <a class="el" href="a00004.html#a4">sample4.cpp</a>.</dd>
124
<p>Definition at line <a class="el" href="a00108_source.html#l00062">62</a> of file <a class="el" href="a00108_source.html">sample3.cpp</a>.</p>
126
<p>References <a class="el" href="a00093_source.html#l00051">bm::bv_statistics::bit_blocks</a>, <a class="el" href="a00087_source.html#l02051">bm::bvector< Alloc, MS >::calc_stat()</a>, <a class="el" href="a00087_source.html#l01650">bm::bvector< Alloc, MS >::count()</a>, <a class="el" href="a00093_source.html#l00053">bm::bv_statistics::gap_blocks</a>, <a class="el" href="a00093_source.html#l00055">bm::bv_statistics::max_serialize_mem</a>, and <a class="el" href="a00093_source.html#l00057">bm::bv_statistics::memory_used</a>.</p>
128
<p>Referenced by <a class="el" href="a00108_source.html#l00075">main()</a>.</p>
132
<hr/><h2>Variable Documentation</h2>
133
<a class="anchor" id="a8652d848be89c1f9b0a77327ee32fc0f"></a><!-- doxytag: member="sample3.cpp::MAX_VALUE" ref="a8652d848be89c1f9b0a77327ee32fc0f" args="" -->
95
134
<div class="memitem">
96
135
<div class="memproto">
97
<div class="memtemplate">
98
template<class T > </div>
99
136
<table class="memname">
101
<td class="memname">void PrintContainer </td>
103
<td class="paramtype">T </td>
104
<td class="paramname"> <em>first</em>, </td>
107
<td class="paramkey"></td>
109
<td class="paramtype">T </td>
110
<td class="paramname"> <em>last</em></td><td> </td>
115
<td></td><td></td><td><code> [inline]</code></td>
138
<td class="memname">const unsigned <a class="el" href="a00109.html#a8652d848be89c1f9b0a77327ee32fc0f">MAX_VALUE</a> = 1000000</td>
119
142
<div class="memdoc">
120
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="a00008.html#a1">sample8.cpp</a>.</dd>
143
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="a00003.html#a0">sample3.cpp</a>, and <a class="el" href="a00004.html#a0">sample4.cpp</a>.</dd>
122
<p>Definition at line <a class="el" href="a00108_source.html#l00059">59</a> of file <a class="el" href="a00108_source.html">sample8.cpp</a>.</p>
124
<p>Referenced by <a class="el" href="a00108_source.html#l00069">main()</a>.</p>
129
<hr size="1"/><address style="text-align: right;"><small>Generated on Sun Nov 22 10:49:37 2009 for BitMagic by
145
<p>Definition at line <a class="el" href="a00108_source.html#l00043">43</a> of file <a class="el" href="a00108_source.html">sample3.cpp</a>.</p>
147
<p>Referenced by <a class="el" href="a00108_source.html#l00049">fill_bvector()</a>.</p>
152
<hr size="1"/><address style="text-align: right;"><small>Generated on Fri Jan 8 20:09:19 2010 for BitMagic by
130
153
<a href="http://www.doxygen.org/index.html">
131
154
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address>