1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
3
<title>BitMagic: sample7.cpp File Reference</title>
4
<link href="doxygen.css" rel="stylesheet" type="text/css">
6
<!-- Generated by Doxygen 1.4.1 -->
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_000008.html">sample7</a></div>
10
<h1>sample7.cpp File Reference</h1><code>#include <iostream></code><br>
11
<code>#include <stdlib.h></code><br>
12
<code>#include <stdio.h></code><br>
13
<code>#include <time.h></code><br>
14
<code>#include "<a class="el" href="a00137.html">bm.h</a>"</code><br>
17
Include dependency graph for sample7.cpp:<p><center><img src="a00186.png" border="0" usemap="#sample7.cpp_map" alt=""></center>
18
<map name="sample7.cpp_map">
19
<area href="a00111.html" shape="rect" coords="163,305,203,327" alt="">
20
<area href="a00113.html" shape="rect" coords="264,192,333,213" alt="">
21
<area href="a00114.html" shape="rect" coords="271,237,327,259" alt="">
22
<area href="a00116.html" shape="rect" coords="267,283,331,304" alt="">
23
<area href="a00115.html" shape="rect" coords="267,373,331,395" alt="">
24
<area href="a00118.html" shape="rect" coords="265,419,332,440" alt="">
25
<area href="a00119.html" shape="rect" coords="263,464,335,485" alt="">
26
<area href="a00117.html" shape="rect" coords="263,600,335,621" alt="">
30
<a href="a00152.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0">
32
<tr><td colspan="2"><br><h2>Defines</h2></td></tr>
33
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="a00126.html#a0">BM_DISBALE_BIT_IN_PTR</a></td></tr>
35
<tr><td colspan="2"><br><h2>Typedefs</h2></td></tr>
36
<tr><td class="memItemLeft" nowrap align="right" valign="top">typedef <a class="el" href="a00084.html">bm::bvector</a>< bm::standard_allocator,<br>
37
<a class="el" href="a00108.html">bm::miniset</a>< bm::block_allocator,<br>
38
<a class="el" href="a00129.html#a45">bm::set_total_blocks</a> > > </td><td class="memItemRight" valign="bottom"><a class="el" href="a00126.html#a1">bvect</a></td></tr>
40
<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
41
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00126.html#a6">CreateSets</a> ()</td></tr>
43
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00126.html#a7">FillSets</a> ()</td></tr>
45
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00126.html#a8">EnumerateSets</a> ()</td></tr>
47
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00126.html#a9">DestroySets</a> ()</td></tr>
49
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00126.html#a10">OrSets</a> ()</td></tr>
51
<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="a00126.html#a11">main</a> (void)</td></tr>
53
<tr><td colspan="2"><br><h2>Variables</h2></td></tr>
54
<tr><td class="memItemLeft" nowrap align="right" valign="top">const unsigned </td><td class="memItemRight" valign="bottom"><a class="el" href="a00126.html#a2">setscount</a> = 10000</td></tr>
56
<tr><td class="memItemLeft" nowrap align="right" valign="top">const unsigned </td><td class="memItemRight" valign="bottom"><a class="el" href="a00126.html#a3">randombits</a> = 150</td></tr>
58
<tr><td class="memItemLeft" nowrap align="right" valign="top">const unsigned </td><td class="memItemRight" valign="bottom"><a class="el" href="a00126.html#a4">maxbit</a> = 100000000</td></tr>
60
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="a00084.html">bvect</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="a00126.html#a5">bitsets</a> [<a class="el" href="a00126.html#a2">setscount</a>]</td></tr>
63
<hr><a name="_details"></a><h2>Detailed Description</h2>
66
Definition in file <a class="el" href="a00152.html">sample7.cpp</a>.<hr><h2>Define Documentation</h2>
67
<a class="anchor" name="a0" doxytag="sample7.cpp::BM_DISBALE_BIT_IN_PTR"></a><p>
68
<table class="mdTable" cellpadding="2" cellspacing="0">
71
<table cellpadding="0" cellspacing="0" border="0">
73
<td class="md" nowrap valign="top">#define BM_DISBALE_BIT_IN_PTR </td>
79
<table cellspacing="5" cellpadding="0" border="0">
89
Definition at line <a class="el" href="a00152.html#l00046">46</a> of file <a class="el" href="a00152.html">sample7.cpp</a>. </td>
92
<hr><h2>Typedef Documentation</h2>
93
<a class="anchor" name="a1" doxytag="sample7.cpp::bvect"></a><p>
94
<table class="mdTable" cellpadding="2" cellspacing="0">
97
<table cellpadding="0" cellspacing="0" border="0">
99
<td class="md" nowrap valign="top">typedef <a class="el" href="a00084.html">bm::bvector</a><bm::standard_allocator, <a class="el" href="a00108.html">bm::miniset</a><bm::block_allocator, <a class="el" href="a00129.html#a45">bm::set_total_blocks</a>> > <a class="el" href="a00084.html">bvect</a> </td>
105
<table cellspacing="5" cellpadding="0" border="0">
115
Definition at line <a class="el" href="a00152.html#l00055">55</a> of file <a class="el" href="a00152.html">sample7.cpp</a>. </td>
118
<hr><h2>Function Documentation</h2>
119
<a class="anchor" name="a6" doxytag="sample7.cpp::CreateSets"></a><p>
120
<table class="mdTable" cellpadding="2" cellspacing="0">
123
<table cellpadding="0" cellspacing="0" border="0">
125
<td class="md" nowrap valign="top">void CreateSets </td>
126
<td class="md" valign="top">( </td>
127
<td class="mdname1" valign="top" nowrap> </td>
128
<td class="md" valign="top"> ) </td>
129
<td class="md" nowrap></td>
135
<table cellspacing="5" cellpadding="0" border="0">
143
<dl compact><dt><b>Examples: </b></dt><dd>
144
<a class="el" href="a00058.html#a39">sample7.cpp</a>.</dl>
146
Definition at line <a class="el" href="a00152.html#l00066">66</a> of file <a class="el" href="a00152.html">sample7.cpp</a>.
148
References <a class="el" href="a00152.html#l00062">bitsets</a>, <a class="el" href="a00084.html#a47">bm::bvector< Alloc, MS >::calc_stat()</a>, <a class="el" href="a00152.html#l00060">maxbit</a>, and <a class="el" href="a00152.html#l00058">setscount</a>.
150
Referenced by <a class="el" href="a00152.html#l00171">main()</a>. </td>
153
<a class="anchor" name="a9" doxytag="sample7.cpp::DestroySets"></a><p>
154
<table class="mdTable" cellpadding="2" cellspacing="0">
157
<table cellpadding="0" cellspacing="0" border="0">
159
<td class="md" nowrap valign="top">void DestroySets </td>
160
<td class="md" valign="top">( </td>
161
<td class="mdname1" valign="top" nowrap> </td>
162
<td class="md" valign="top"> ) </td>
163
<td class="md" nowrap></td>
169
<table cellspacing="5" cellpadding="0" border="0">
177
<dl compact><dt><b>Examples: </b></dt><dd>
178
<a class="el" href="a00058.html#a46">sample7.cpp</a>.</dl>
180
Definition at line <a class="el" href="a00152.html#l00143">143</a> of file <a class="el" href="a00152.html">sample7.cpp</a>.
182
References <a class="el" href="a00152.html#l00062">bitsets</a>, and <a class="el" href="a00152.html#l00058">setscount</a>.
184
Referenced by <a class="el" href="a00152.html#l00171">main()</a>. </td>
187
<a class="anchor" name="a8" doxytag="sample7.cpp::EnumerateSets"></a><p>
188
<table class="mdTable" cellpadding="2" cellspacing="0">
191
<table cellpadding="0" cellspacing="0" border="0">
193
<td class="md" nowrap valign="top">void EnumerateSets </td>
194
<td class="md" valign="top">( </td>
195
<td class="mdname1" valign="top" nowrap> </td>
196
<td class="md" valign="top"> ) </td>
197
<td class="md" nowrap></td>
203
<table cellspacing="5" cellpadding="0" border="0">
211
<dl compact><dt><b>Examples: </b></dt><dd>
212
<a class="el" href="a00058.html#a50">sample7.cpp</a>.</dl>
214
Definition at line <a class="el" href="a00152.html#l00121">121</a> of file <a class="el" href="a00152.html">sample7.cpp</a>.
216
References <a class="el" href="a00152.html#l00062">bitsets</a>, <a class="el" href="a00137.html#l01437">bm::bvector< Alloc, MS >::end()</a>, <a class="el" href="a00137.html#l01427">bm::bvector< Alloc, MS >::first()</a>, and <a class="el" href="a00152.html#l00058">setscount</a>.
218
Referenced by <a class="el" href="a00152.html#l00171">main()</a>. </td>
221
<a class="anchor" name="a7" doxytag="sample7.cpp::FillSets"></a><p>
222
<table class="mdTable" cellpadding="2" cellspacing="0">
225
<table cellpadding="0" cellspacing="0" border="0">
227
<td class="md" nowrap valign="top">void FillSets </td>
228
<td class="md" valign="top">( </td>
229
<td class="mdname1" valign="top" nowrap> </td>
230
<td class="md" valign="top"> ) </td>
231
<td class="md" nowrap></td>
237
<table cellspacing="5" cellpadding="0" border="0">
245
<dl compact><dt><b>Examples: </b></dt><dd>
246
<a class="el" href="a00058.html#a43">sample7.cpp</a>.</dl>
248
Definition at line <a class="el" href="a00152.html#l00087">87</a> of file <a class="el" href="a00152.html">sample7.cpp</a>.
250
References <a class="el" href="a00152.html#l00062">bitsets</a>, <a class="el" href="a00084.html#a47">bm::bvector< Alloc, MS >::calc_stat()</a>, <a class="el" href="a00152.html#l00060">maxbit</a>, <a class="el" href="a00152.html#l00059">randombits</a>, and <a class="el" href="a00152.html#l00058">setscount</a>.
252
Referenced by <a class="el" href="a00152.html#l00171">main()</a>. </td>
255
<a class="anchor" name="a11" doxytag="sample7.cpp::main"></a><p>
256
<table class="mdTable" cellpadding="2" cellspacing="0">
259
<table cellpadding="0" cellspacing="0" border="0">
261
<td class="md" nowrap valign="top">int main </td>
262
<td class="md" valign="top">( </td>
263
<td class="md" nowrap valign="top">void </td>
264
<td class="mdname1" valign="top" nowrap> </td>
265
<td class="md" valign="top"> ) </td>
266
<td class="md" nowrap></td>
272
<table cellspacing="5" cellpadding="0" border="0">
282
Definition at line <a class="el" href="a00152.html#l00171">171</a> of file <a class="el" href="a00152.html">sample7.cpp</a>.
284
References <a class="el" href="a00152.html#l00066">CreateSets()</a>, <a class="el" href="a00152.html#l00143">DestroySets()</a>, <a class="el" href="a00152.html#l00121">EnumerateSets()</a>, <a class="el" href="a00152.html#l00087">FillSets()</a>, <a class="el" href="a00152.html#l00153">OrSets()</a>, and <a class="el" href="a00152.html#l00058">setscount</a>. </td>
287
<a class="anchor" name="a10" doxytag="sample7.cpp::OrSets"></a><p>
288
<table class="mdTable" cellpadding="2" cellspacing="0">
291
<table cellpadding="0" cellspacing="0" border="0">
293
<td class="md" nowrap valign="top">void OrSets </td>
294
<td class="md" valign="top">( </td>
295
<td class="mdname1" valign="top" nowrap> </td>
296
<td class="md" valign="top"> ) </td>
297
<td class="md" nowrap></td>
303
<table cellspacing="5" cellpadding="0" border="0">
311
<dl compact><dt><b>Examples: </b></dt><dd>
312
<a class="el" href="a00058.html#a47">sample7.cpp</a>.</dl>
314
Definition at line <a class="el" href="a00152.html#l00153">153</a> of file <a class="el" href="a00152.html">sample7.cpp</a>.
316
References <a class="el" href="a00152.html#l00062">bitsets</a>, <a class="el" href="a00137.html#l01638">bm::bvector< Alloc, MS >::count()</a>, and <a class="el" href="a00152.html#l00058">setscount</a>.
318
Referenced by <a class="el" href="a00152.html#l00171">main()</a>. </td>
321
<hr><h2>Variable Documentation</h2>
322
<a class="anchor" name="a5" doxytag="sample7.cpp::bitsets"></a><p>
323
<table class="mdTable" cellpadding="2" cellspacing="0">
326
<table cellpadding="0" cellspacing="0" border="0">
328
<td class="md" nowrap valign="top"><a class="el" href="a00084.html">bvect</a>* <a class="el" href="a00126.html#a5">bitsets</a>[<a class="el" href="a00126.html#a2">setscount</a>] </td>
334
<table cellspacing="5" cellpadding="0" border="0">
344
Definition at line <a class="el" href="a00152.html#l00062">62</a> of file <a class="el" href="a00152.html">sample7.cpp</a>.
346
Referenced by <a class="el" href="a00152.html#l00066">CreateSets()</a>, <a class="el" href="a00152.html#l00143">DestroySets()</a>, <a class="el" href="a00152.html#l00121">EnumerateSets()</a>, <a class="el" href="a00152.html#l00087">FillSets()</a>, and <a class="el" href="a00152.html#l00153">OrSets()</a>. </td>
349
<a class="anchor" name="a4" doxytag="sample7.cpp::maxbit"></a><p>
350
<table class="mdTable" cellpadding="2" cellspacing="0">
353
<table cellpadding="0" cellspacing="0" border="0">
355
<td class="md" nowrap valign="top">const unsigned <a class="el" href="a00126.html#a4">maxbit</a> = 100000000 </td>
361
<table cellspacing="5" cellpadding="0" border="0">
371
Definition at line <a class="el" href="a00152.html#l00060">60</a> of file <a class="el" href="a00152.html">sample7.cpp</a>.
373
Referenced by <a class="el" href="a00152.html#l00066">CreateSets()</a>, and <a class="el" href="a00152.html#l00087">FillSets()</a>. </td>
376
<a class="anchor" name="a3" doxytag="sample7.cpp::randombits"></a><p>
377
<table class="mdTable" cellpadding="2" cellspacing="0">
380
<table cellpadding="0" cellspacing="0" border="0">
382
<td class="md" nowrap valign="top">const unsigned <a class="el" href="a00126.html#a3">randombits</a> = 150 </td>
388
<table cellspacing="5" cellpadding="0" border="0">
398
Definition at line <a class="el" href="a00152.html#l00059">59</a> of file <a class="el" href="a00152.html">sample7.cpp</a>.
400
Referenced by <a class="el" href="a00152.html#l00087">FillSets()</a>. </td>
403
<a class="anchor" name="a2" doxytag="sample7.cpp::setscount"></a><p>
404
<table class="mdTable" cellpadding="2" cellspacing="0">
407
<table cellpadding="0" cellspacing="0" border="0">
409
<td class="md" nowrap valign="top">const unsigned <a class="el" href="a00126.html#a2">setscount</a> = 10000 </td>
415
<table cellspacing="5" cellpadding="0" border="0">
425
Definition at line <a class="el" href="a00152.html#l00058">58</a> of file <a class="el" href="a00152.html">sample7.cpp</a>.
427
Referenced by <a class="el" href="a00152.html#l00066">CreateSets()</a>, <a class="el" href="a00152.html#l00143">DestroySets()</a>, <a class="el" href="a00152.html#l00121">EnumerateSets()</a>, <a class="el" href="a00152.html#l00087">FillSets()</a>, <a class="el" href="a00152.html#l00171">main()</a>, and <a class="el" href="a00152.html#l00153">OrSets()</a>. </td>
430
<hr size="1"><address style="align: right;"><small>Generated on Sun Aug 5 14:12:34 2007 for BitMagic by
431
<a href="http://www.doxygen.org/index.html">
432
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.1 </small></address>