~ubuntu-branches/ubuntu/jaunty/bmagic/jaunty

« back to all changes in this revision

Viewing changes to html/a00111.html

  • Committer: Bazaar Package Importer
  • Author(s): Andres Salomon
  • Date: 2008-01-05 23:58:56 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20080105235856-2kmxhxkz14qjy9ia
Tags: 3.5.0-1
* New upstream release.
* Add tcpp.dpatch.  This stops tests/stress/t.cpp from including
  ncbi_pch.hpp.  As far as I can tell, NCBI is not used at all, I have
  no idea where that came from..
* Silence some lintian warnings; binary-arch-rules-but-pkg-is-arch-indep
  and ancient-standards-version.

Show diffs side-by-side

added added

removed removed

Lines of Context:
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 Source File</title>
 
3
<title>BitMagic: bm.h File Reference</title>
4
4
<link href="doxygen.css" rel="stylesheet" type="text/css">
5
5
</head><body>
6
6
<!-- Generated by Doxygen 1.4.1 -->
7
7
<div class="qindex"><a class="qindex" href="index.html">Main&nbsp;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&nbsp;Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical&nbsp;List</a> | <a class="qindex" href="annotated.html">Data&nbsp;Structures</a> | <a class="qindex" href="dirs.html">Directories</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="namespacemembers.html">Namespace&nbsp;Members</a> | <a class="qindex" href="functions.html">Data&nbsp;Fields</a> | <a class="qindex" href="globals.html">Globals</a> | <a class="qindex" href="examples.html">Examples</a></div>
8
8
<div class="nav">
9
 
<a class="el" href="dir_000001.html">samples</a>&nbsp;/&nbsp;<a class="el" href="dir_000002.html">sample1</a></div>
10
 
<h1>sample1.cpp</h1><a href="a00083.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment">00001 <span class="comment">/*</span>
11
 
00002 <span class="comment">Copyright(c) 2002-2005 Anatoliy Kuznetsov(anatoliy_kuznetsov at yahoo.com)</span>
12
 
00003 <span class="comment"></span>
13
 
00004 <span class="comment">Permission is hereby granted, free of charge, to any person </span>
14
 
00005 <span class="comment">obtaining a copy of this software and associated documentation </span>
15
 
00006 <span class="comment">files (the "Software"), to deal in the Software without restriction, </span>
16
 
00007 <span class="comment">including without limitation the rights to use, copy, modify, merge, </span>
17
 
00008 <span class="comment">publish, distribute, sublicense, and/or sell copies of the Software, </span>
18
 
00009 <span class="comment">and to permit persons to whom the Software is furnished to do so, </span>
19
 
00010 <span class="comment">subject to the following conditions:</span>
20
 
00011 <span class="comment"></span>
21
 
00012 <span class="comment">The above copyright notice and this permission notice shall be included </span>
22
 
00013 <span class="comment">in all copies or substantial portions of the Software.</span>
23
 
00014 <span class="comment"></span>
24
 
00015 <span class="comment">THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, </span>
25
 
00016 <span class="comment">EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES </span>
26
 
00017 <span class="comment">OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. </span>
27
 
00018 <span class="comment">IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, </span>
28
 
00019 <span class="comment">DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, </span>
29
 
00020 <span class="comment">ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR </span>
30
 
00021 <span class="comment">OTHER DEALINGS IN THE SOFTWARE.</span>
31
 
00022 <span class="comment">*/</span>
32
 
00023 <span class="comment"></span>
33
 
00024 <span class="comment">/** \example sample1.cpp</span>
34
 
00025 <span class="comment">  Example of how to use bvector template class to set</span>
35
 
00026 <span class="comment">  bits and then retrieve indexes of ON bits.</span>
36
 
00027 <span class="comment"> </span>
37
 
00028 <span class="comment">  For more information please visit:  http://bmagic.sourceforge.net</span>
38
 
00029 <span class="comment"></span>
39
 
00030 <span class="comment">  \sa bm::bvector&lt;&gt;::get_next() </span>
40
 
00031 <span class="comment">  \sa bm::bvector&lt;&gt;::get_first() </span>
41
 
00032 <span class="comment">  \sa bm::bvector&lt;&gt;::set()</span>
42
 
00033 <span class="comment">  \sa bm::bvector&lt;&gt;::count() </span>
43
 
00034 <span class="comment">  \sa bm::bvector&lt;&gt;::clear()</span>
44
 
00035 <span class="comment">  </span>
45
 
00036 <span class="comment"> */</span>
46
 
00037 
47
 
00038 
48
 
00039 <span class="preprocessor">#include &lt;iostream&gt;</span>
49
 
00040 <span class="preprocessor">#include "<a class="code" href="a00074.html">bm.h</a>"</span>
50
 
00041 
51
 
00042 <span class="keyword">using</span> <span class="keyword">namespace </span>std;
52
 
00043 
53
 
<a name="l00044"></a><a class="code" href="a00083.html#a0">00044</a> <span class="keywordtype">int</span> <a class="code" href="a00083.html#a0">main</a>(<span class="keywordtype">void</span>)
54
 
00045 {
55
 
00046     <a class="code" href="a00048.html">bm::bvector&lt;&gt;</a>   bv;    <span class="comment">// Bitvector variable declaration.</span>
56
 
00047 
57
 
00048     cout &lt;&lt; bv.<a class="code" href="a00048.html#a26">count</a>() &lt;&lt; endl;
58
 
00049 
59
 
00050     <span class="comment">// Set some bits.</span>
60
 
00051 
61
 
00052     bv.<a class="code" href="a00048.html#a19">set</a>(10);
62
 
00053     bv.<a class="code" href="a00048.html#a19">set</a>(100);
63
 
00054     bv.<a class="code" href="a00048.html#a19">set</a>(1000000);
64
 
00055 
65
 
00056     <span class="comment">// New bitvector's count.</span>
66
 
00057 
67
 
00058     cout &lt;&lt; bv.<a class="code" href="a00048.html#a26">count</a>() &lt;&lt; endl;
68
 
00059 
69
 
00060 
70
 
00061     <span class="comment">// Print the bitvector.</span>
71
 
00062 
72
 
00063     <span class="keywordtype">unsigned</span> value = bv.<a class="code" href="a00048.html#a42">get_first</a>();
73
 
00064     <span class="keywordflow">do</span>
74
 
00065     {
75
 
00066         cout &lt;&lt; value;
76
 
00067         value = bv.<a class="code" href="a00048.html#a43">get_next</a>(value);
77
 
00068         <span class="keywordflow">if</span> (value)
78
 
00069         {
79
 
00070             cout &lt;&lt; <span class="stringliteral">","</span>;
80
 
00071         }
81
 
00072         <span class="keywordflow">else</span>
82
 
00073         {
83
 
00074             <span class="keywordflow">break</span>;
84
 
00075         }
85
 
00076     } <span class="keywordflow">while</span>(1);
86
 
00077 
87
 
00078     cout &lt;&lt; endl;
88
 
00079 
89
 
00080     bv.<a class="code" href="a00048.html#a24">clear</a>();   <span class="comment">// Clean up.</span>
90
 
00081 
91
 
00082     cout &lt;&lt; bv.<a class="code" href="a00048.html#a26">count</a>() &lt;&lt; endl;
92
 
00083 
93
 
00084     <span class="comment">// We also can use operators to set-clear bits;</span>
94
 
00085 
95
 
00086     bv[10] = <span class="keyword">true</span>;
96
 
00087     bv[100] = <span class="keyword">true</span>;
97
 
00088     bv[10000] = <span class="keyword">true</span>;
98
 
00089 
99
 
00090     cout &lt;&lt; bv.<a class="code" href="a00048.html#a26">count</a>() &lt;&lt; endl;
100
 
00091 
101
 
00092     <span class="keywordflow">if</span> (bv[10])
102
 
00093     {
103
 
00094         bv[10] = <span class="keyword">false</span>;
104
 
00095     }
105
 
00096 
106
 
00097     cout &lt;&lt; bv.<a class="code" href="a00048.html#a26">count</a>() &lt;&lt; endl;
107
 
00098 
108
 
00099     <span class="keywordflow">return</span> 0;
109
 
00100 }
110
 
00101 
111
 
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Thu Apr 20 13:28:46 2006 for BitMagic by&nbsp;
 
9
<a class="el" href="dir_000000.html">src</a></div>
 
10
<h1>bm.h File Reference</h1><code>#include &lt;string.h&gt;</code><br>
 
11
<code>#include &lt;assert.h&gt;</code><br>
 
12
<code>#include &lt;limits.h&gt;</code><br>
 
13
<code>#include &lt;iterator&gt;</code><br>
 
14
<code>#include "<a class="el" href="a00139.html">bmconst.h</a>"</code><br>
 
15
<code>#include "<a class="el" href="a00140.html">bmdef.h</a>"</code><br>
 
16
<code>#include "<a class="el" href="a00142.html">bmsse2.h</a>"</code><br>
 
17
<code>#include "bmfwd.h"</code><br>
 
18
<code>#include "<a class="el" href="a00141.html">bmfunc.h</a>"</code><br>
 
19
<code>#include "<a class="el" href="a00144.html">bmvmin.h</a>"</code><br>
 
20
<code>#include "<a class="el" href="a00145.html">encoding.h</a>"</code><br>
 
21
<code>#include "bmalloc.h"</code><br>
 
22
<code>#include "bmblocks.h"</code><br>
 
23
<code>#include "<a class="el" href="a00143.html">bmundef.h</a>"</code><br>
 
24
 
 
25
<p>
 
26
Include dependency graph for bm.h:<p><center><img src="a00165.png" border="0" usemap="#bm.h_map" alt=""></center>
 
27
<map name="bm.h_map">
 
28
<area href="a00113.html" shape="rect" coords="109,192,179,213" alt="">
 
29
<area href="a00114.html" shape="rect" coords="116,237,172,259" alt="">
 
30
<area href="a00116.html" shape="rect" coords="112,283,176,304" alt="">
 
31
<area href="a00115.html" shape="rect" coords="112,373,176,395" alt="">
 
32
<area href="a00118.html" shape="rect" coords="111,419,177,440" alt="">
 
33
<area href="a00119.html" shape="rect" coords="108,464,180,485" alt="">
 
34
<area href="a00117.html" shape="rect" coords="108,600,180,621" alt="">
 
35
</map>
 
36
 
 
37
<p>
 
38
This graph shows which files directly or indirectly include this file:<p><center><img src="a00166.png" border="0" usemap="#bm.hdep_map" alt=""></center>
 
39
<map name="bm.hdep_map">
 
40
<area href="a00112.html" shape="rect" coords="117,6,181,27" alt="">
 
41
<area href="a00128.html" shape="rect" coords="241,30,329,51" alt="">
 
42
<area href="a00120.html" shape="rect" coords="107,102,192,123" alt="">
 
43
<area href="a00121.html" shape="rect" coords="107,147,192,168" alt="">
 
44
<area href="a00122.html" shape="rect" coords="105,192,193,214" alt="">
 
45
<area href="a00123.html" shape="rect" coords="107,238,192,259" alt="">
 
46
<area href="a00124.html" shape="rect" coords="105,283,193,304" alt="">
 
47
<area href="a00125.html" shape="rect" coords="107,328,192,350" alt="">
 
48
<area href="a00126.html" shape="rect" coords="107,374,192,395" alt="">
 
49
<area href="a00127.html" shape="rect" coords="105,419,193,440" alt="">
 
50
</map>
 
51
 
 
52
<p>
 
53
<a href="a00137.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0">
 
54
<tr><td></td></tr>
 
55
<tr><td colspan="2"><br><h2>Namespaces</h2></td></tr>
 
56
<tr><td class="memItemLeft" nowrap align="right" valign="top">namespace &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00129.html">bm</a></td></tr>
 
57
 
 
58
<tr><td colspan="2"><br><h2>Defines</h2></td></tr>
 
59
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00111.html#a0">BMVECTOPT</a></td></tr>
 
60
 
 
61
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00111.html#a1">BMCOUNT_INC</a></td></tr>
 
62
 
 
63
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00111.html#a2">BMCOUNT_DEC</a></td></tr>
 
64
 
 
65
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00111.html#a3">BMCOUNT_VALID</a>(x)</td></tr>
 
66
 
 
67
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00111.html#a4">BMCOUNT_SET</a>(x)</td></tr>
 
68
 
 
69
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00111.html#a5">BMCOUNT_ADJ</a>(x)</td></tr>
 
70
 
 
71
<tr><td colspan="2"><br><h2>Typedefs</h2></td></tr>
 
72
<tr><td class="memItemLeft" nowrap align="right" valign="top">typedef <a class="el" href="a00108.html">bm::miniset</a>&lt; bm::block_allocator,<br>
 
73
 <a class="el" href="a00129.html#a45">bm::set_total_blocks</a> &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00129.html#a0">mem_save_set</a></td></tr>
 
74
 
 
75
<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
 
76
<tr><td class="memTemplParams" nowrap colspan="2">template&lt;class Alloc, class MS&gt; </td></tr>
 
77
<tr><td class="memTemplItemLeft" nowrap align="right" valign="top">bvector&lt; Alloc, MS &gt;&nbsp;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00129.html#a53">operator &amp;</a> (const bvector&lt; Alloc, MS &gt; &amp;v1, const bvector&lt; Alloc, MS &gt; &amp;v2)</td></tr>
 
78
 
 
79
<tr><td class="memTemplParams" nowrap colspan="2">template&lt;class Alloc, class MS&gt; </td></tr>
 
80
<tr><td class="memTemplItemLeft" nowrap align="right" valign="top">bvector&lt; Alloc, MS &gt;&nbsp;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00129.html#a54">operator|</a> (const bvector&lt; Alloc, MS &gt; &amp;v1, const bvector&lt; Alloc &gt; &amp;v2)</td></tr>
 
81
 
 
82
<tr><td class="memTemplParams" nowrap colspan="2">template&lt;class Alloc, class MS&gt; </td></tr>
 
83
<tr><td class="memTemplItemLeft" nowrap align="right" valign="top">bvector&lt; Alloc, MS &gt;&nbsp;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00129.html#a55">operator^</a> (const bvector&lt; Alloc, MS &gt; &amp;v1, const bvector&lt; Alloc, MS &gt; &amp;v2)</td></tr>
 
84
 
 
85
<tr><td class="memTemplParams" nowrap colspan="2">template&lt;class Alloc, class MS&gt; </td></tr>
 
86
<tr><td class="memTemplItemLeft" nowrap align="right" valign="top">bvector&lt; Alloc, MS &gt;&nbsp;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00129.html#a56">operator-</a> (const bvector&lt; Alloc, MS &gt; &amp;v1, const bvector&lt; Alloc, MS &gt; &amp;v2)</td></tr>
 
87
 
 
88
</table>
 
89
<hr><h2>Define Documentation</h2>
 
90
<a class="anchor" name="a5" doxytag="bm.h::BMCOUNT_ADJ"></a><p>
 
91
<table class="mdTable" cellpadding="2" cellspacing="0">
 
92
  <tr>
 
93
    <td class="mdRow">
 
94
      <table cellpadding="0" cellspacing="0" border="0">
 
95
        <tr>
 
96
          <td class="md" nowrap valign="top">#define BMCOUNT_ADJ          </td>
 
97
          <td class="md" valign="top">(&nbsp;</td>
 
98
          <td class="md" nowrap valign="top">x&nbsp;</td>
 
99
          <td class="mdname1" valign="top" nowrap>          </td>
 
100
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
 
101
          <td class="md" nowrap></td>
 
102
        </tr>
 
103
      </table>
 
104
    </td>
 
105
  </tr>
 
106
</table>
 
107
<table cellspacing="5" cellpadding="0" border="0">
 
108
  <tr>
 
109
    <td>
 
110
      &nbsp;
 
111
    </td>
 
112
    <td>
 
113
 
 
114
<p>
 
115
 
 
116
<p>
 
117
Definition at line <a class="el" href="a00137.html#l00083">83</a> of file <a class="el" href="a00137.html">bm.h</a>.    </td>
 
118
  </tr>
 
119
</table>
 
120
<a class="anchor" name="a2" doxytag="bm.h::BMCOUNT_DEC"></a><p>
 
121
<table class="mdTable" cellpadding="2" cellspacing="0">
 
122
  <tr>
 
123
    <td class="mdRow">
 
124
      <table cellpadding="0" cellspacing="0" border="0">
 
125
        <tr>
 
126
          <td class="md" nowrap valign="top">#define BMCOUNT_DEC          </td>
 
127
        </tr>
 
128
      </table>
 
129
    </td>
 
130
  </tr>
 
131
</table>
 
132
<table cellspacing="5" cellpadding="0" border="0">
 
133
  <tr>
 
134
    <td>
 
135
      &nbsp;
 
136
    </td>
 
137
    <td>
 
138
 
 
139
<p>
 
140
 
 
141
<p>
 
142
Definition at line <a class="el" href="a00137.html#l00080">80</a> of file <a class="el" href="a00137.html">bm.h</a>.    </td>
 
143
  </tr>
 
144
</table>
 
145
<a class="anchor" name="a1" doxytag="bm.h::BMCOUNT_INC"></a><p>
 
146
<table class="mdTable" cellpadding="2" cellspacing="0">
 
147
  <tr>
 
148
    <td class="mdRow">
 
149
      <table cellpadding="0" cellspacing="0" border="0">
 
150
        <tr>
 
151
          <td class="md" nowrap valign="top">#define BMCOUNT_INC          </td>
 
152
        </tr>
 
153
      </table>
 
154
    </td>
 
155
  </tr>
 
156
</table>
 
157
<table cellspacing="5" cellpadding="0" border="0">
 
158
  <tr>
 
159
    <td>
 
160
      &nbsp;
 
161
    </td>
 
162
    <td>
 
163
 
 
164
<p>
 
165
 
 
166
<p>
 
167
Definition at line <a class="el" href="a00137.html#l00079">79</a> of file <a class="el" href="a00137.html">bm.h</a>.    </td>
 
168
  </tr>
 
169
</table>
 
170
<a class="anchor" name="a4" doxytag="bm.h::BMCOUNT_SET"></a><p>
 
171
<table class="mdTable" cellpadding="2" cellspacing="0">
 
172
  <tr>
 
173
    <td class="mdRow">
 
174
      <table cellpadding="0" cellspacing="0" border="0">
 
175
        <tr>
 
176
          <td class="md" nowrap valign="top">#define BMCOUNT_SET          </td>
 
177
          <td class="md" valign="top">(&nbsp;</td>
 
178
          <td class="md" nowrap valign="top">x&nbsp;</td>
 
179
          <td class="mdname1" valign="top" nowrap>          </td>
 
180
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
 
181
          <td class="md" nowrap></td>
 
182
        </tr>
 
183
      </table>
 
184
    </td>
 
185
  </tr>
 
186
</table>
 
187
<table cellspacing="5" cellpadding="0" border="0">
 
188
  <tr>
 
189
    <td>
 
190
      &nbsp;
 
191
    </td>
 
192
    <td>
 
193
 
 
194
<p>
 
195
 
 
196
<p>
 
197
Definition at line <a class="el" href="a00137.html#l00082">82</a> of file <a class="el" href="a00137.html">bm.h</a>.
 
198
<p>
 
199
Referenced by <a class="el" href="a00137.html#l01044">bm::bvector&lt; Alloc, MS &gt;::clear()</a>, and <a class="el" href="a00137.html#l01638">bm::bvector&lt; Alloc, MS &gt;::count()</a>.    </td>
 
200
  </tr>
 
201
</table>
 
202
<a class="anchor" name="a3" doxytag="bm.h::BMCOUNT_VALID"></a><p>
 
203
<table class="mdTable" cellpadding="2" cellspacing="0">
 
204
  <tr>
 
205
    <td class="mdRow">
 
206
      <table cellpadding="0" cellspacing="0" border="0">
 
207
        <tr>
 
208
          <td class="md" nowrap valign="top">#define BMCOUNT_VALID          </td>
 
209
          <td class="md" valign="top">(&nbsp;</td>
 
210
          <td class="md" nowrap valign="top">x&nbsp;</td>
 
211
          <td class="mdname1" valign="top" nowrap>          </td>
 
212
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
 
213
          <td class="md" nowrap></td>
 
214
        </tr>
 
215
      </table>
 
216
    </td>
 
217
  </tr>
 
218
</table>
 
219
<table cellspacing="5" cellpadding="0" border="0">
 
220
  <tr>
 
221
    <td>
 
222
      &nbsp;
 
223
    </td>
 
224
    <td>
 
225
 
 
226
<p>
 
227
 
 
228
<p>
 
229
Definition at line <a class="el" href="a00137.html#l00081">81</a> of file <a class="el" href="a00137.html">bm.h</a>.
 
230
<p>
 
231
Referenced by <a class="el" href="a00137.html#l01283">bm::bvector&lt; Alloc, MS &gt;::bit_and()</a>, <a class="el" href="a00137.html#l01272">bm::bvector&lt; Alloc, MS &gt;::bit_or()</a>, <a class="el" href="a00137.html#l01305">bm::bvector&lt; Alloc, MS &gt;::bit_sub()</a>, <a class="el" href="a00137.html#l01294">bm::bvector&lt; Alloc, MS &gt;::bit_xor()</a>, <a class="el" href="a00137.html#l01131">bm::bvector&lt; Alloc, MS &gt;::forget_count()</a>, <a class="el" href="a00137.html#l01772">bm::bvector&lt; Alloc, MS &gt;::invert()</a>, <a class="el" href="a00137.html#l01118">bm::bvector&lt; Alloc, MS &gt;::recalc_count()</a>, <a class="el" href="a00137.html#l00997">bm::bvector&lt; Alloc, MS &gt;::set()</a>, <a class="el" href="a00137.html#l01615">bm::bvector&lt; Alloc, MS &gt;::set_range()</a>, and <a class="el" href="a00137.html#l01208">bm::bvector&lt; Alloc, MS &gt;::swap()</a>.    </td>
 
232
  </tr>
 
233
</table>
 
234
<a class="anchor" name="a0" doxytag="bm.h::BMVECTOPT"></a><p>
 
235
<table class="mdTable" cellpadding="2" cellspacing="0">
 
236
  <tr>
 
237
    <td class="mdRow">
 
238
      <table cellpadding="0" cellspacing="0" border="0">
 
239
        <tr>
 
240
          <td class="md" nowrap valign="top">#define BMVECTOPT          </td>
 
241
        </tr>
 
242
      </table>
 
243
    </td>
 
244
  </tr>
 
245
</table>
 
246
<table cellspacing="5" cellpadding="0" border="0">
 
247
  <tr>
 
248
    <td>
 
249
      &nbsp;
 
250
    </td>
 
251
    <td>
 
252
 
 
253
<p>
 
254
 
 
255
<p>
 
256
Definition at line <a class="el" href="a00137.html#l00054">54</a> of file <a class="el" href="a00137.html">bm.h</a>.    </td>
 
257
  </tr>
 
258
</table>
 
259
<hr><h2>Typedef Documentation</h2>
 
260
<a class="anchor" name="file_a0" doxytag="bm.h::mem_save_set"></a><p>
 
261
<table class="mdTable" cellpadding="2" cellspacing="0">
 
262
  <tr>
 
263
    <td class="mdRow">
 
264
      <table cellpadding="0" cellspacing="0" border="0">
 
265
        <tr>
 
266
          <td class="md" nowrap valign="top">typedef <a class="el" href="a00108.html">bm::miniset</a>&lt;bm::block_allocator, <a class="el" href="a00129.html#a45">bm::set_total_blocks</a>&gt; <a class="el" href="a00108.html">bm::mem_save_set</a>          </td>
 
267
        </tr>
 
268
      </table>
 
269
    </td>
 
270
  </tr>
 
271
</table>
 
272
<table cellspacing="5" cellpadding="0" border="0">
 
273
  <tr>
 
274
    <td>
 
275
      &nbsp;
 
276
    </td>
 
277
    <td>
 
278
 
 
279
<p>
 
280
 
 
281
<p>
 
282
Definition at line <a class="el" href="a00137.html#l00089">89</a> of file <a class="el" href="a00137.html">bm.h</a>.    </td>
 
283
  </tr>
 
284
</table>
 
285
<hr><h2>Function Documentation</h2>
 
286
<a class="anchor" name="file_a53" doxytag="bm.h::operator &"></a><p>
 
287
<table class="mdTable" cellpadding="2" cellspacing="0">
 
288
  <tr>
 
289
    <td class="mdRow">
 
290
      <table cellpadding="0" cellspacing="0" border="0">
 
291
        <tr>
 
292
          <td class="mdPrefix" colspan="4">
 
293
template&lt;class Alloc, class MS&gt; </td>
 
294
        </tr>
 
295
        <tr>
 
296
          <td class="md" nowrap valign="top">bvector&lt;Alloc, MS&gt; operator &amp;           </td>
 
297
          <td class="md" valign="top">(&nbsp;</td>
 
298
          <td class="md" nowrap valign="top">const bvector&lt; Alloc, MS &gt; &amp;&nbsp;</td>
 
299
          <td class="mdname" nowrap> <em>v1</em>, </td>
 
300
        </tr>
 
301
        <tr>
 
302
          <td class="md" nowrap align="right"></td>
 
303
          <td class="md"></td>
 
304
          <td class="md" nowrap>const bvector&lt; Alloc, MS &gt; &amp;&nbsp;</td>
 
305
          <td class="mdname" nowrap> <em>v2</em></td>
 
306
        </tr>
 
307
        <tr>
 
308
          <td class="md"></td>
 
309
          <td class="md">)&nbsp;</td>
 
310
          <td class="md" colspan="2"><code> [inline]</code></td>
 
311
        </tr>
 
312
      </table>
 
313
    </td>
 
314
  </tr>
 
315
</table>
 
316
<table cellspacing="5" cellpadding="0" border="0">
 
317
  <tr>
 
318
    <td>
 
319
      &nbsp;
 
320
    </td>
 
321
    <td>
 
322
 
 
323
<p>
 
324
 
 
325
<p>
 
326
Definition at line <a class="el" href="a00137.html#l01552">1552</a> of file <a class="el" href="a00137.html">bm.h</a>.
 
327
<p>
 
328
References <a class="el" href="a00137.html#l01283">bm::bvector&lt; Alloc, MS &gt;::bit_and()</a>.    </td>
 
329
  </tr>
 
330
</table>
 
331
<a class="anchor" name="file_a56" doxytag="bm.h::operator-"></a><p>
 
332
<table class="mdTable" cellpadding="2" cellspacing="0">
 
333
  <tr>
 
334
    <td class="mdRow">
 
335
      <table cellpadding="0" cellspacing="0" border="0">
 
336
        <tr>
 
337
          <td class="mdPrefix" colspan="4">
 
338
template&lt;class Alloc, class MS&gt; </td>
 
339
        </tr>
 
340
        <tr>
 
341
          <td class="md" nowrap valign="top">bvector&lt;Alloc, MS&gt; operator-           </td>
 
342
          <td class="md" valign="top">(&nbsp;</td>
 
343
          <td class="md" nowrap valign="top">const bvector&lt; Alloc, MS &gt; &amp;&nbsp;</td>
 
344
          <td class="mdname" nowrap> <em>v1</em>, </td>
 
345
        </tr>
 
346
        <tr>
 
347
          <td class="md" nowrap align="right"></td>
 
348
          <td class="md"></td>
 
349
          <td class="md" nowrap>const bvector&lt; Alloc, MS &gt; &amp;&nbsp;</td>
 
350
          <td class="mdname" nowrap> <em>v2</em></td>
 
351
        </tr>
 
352
        <tr>
 
353
          <td class="md"></td>
 
354
          <td class="md">)&nbsp;</td>
 
355
          <td class="md" colspan="2"><code> [inline]</code></td>
 
356
        </tr>
 
357
      </table>
 
358
    </td>
 
359
  </tr>
 
360
</table>
 
361
<table cellspacing="5" cellpadding="0" border="0">
 
362
  <tr>
 
363
    <td>
 
364
      &nbsp;
 
365
    </td>
 
366
    <td>
 
367
 
 
368
<p>
 
369
 
 
370
<p>
 
371
Definition at line <a class="el" href="a00137.html#l01597">1597</a> of file <a class="el" href="a00137.html">bm.h</a>.
 
372
<p>
 
373
References <a class="el" href="a00137.html#l01305">bm::bvector&lt; Alloc, MS &gt;::bit_sub()</a>.    </td>
 
374
  </tr>
 
375
</table>
 
376
<a class="anchor" name="file_a55" doxytag="bm.h::operator^"></a><p>
 
377
<table class="mdTable" cellpadding="2" cellspacing="0">
 
378
  <tr>
 
379
    <td class="mdRow">
 
380
      <table cellpadding="0" cellspacing="0" border="0">
 
381
        <tr>
 
382
          <td class="mdPrefix" colspan="4">
 
383
template&lt;class Alloc, class MS&gt; </td>
 
384
        </tr>
 
385
        <tr>
 
386
          <td class="md" nowrap valign="top">bvector&lt;Alloc, MS&gt; operator^           </td>
 
387
          <td class="md" valign="top">(&nbsp;</td>
 
388
          <td class="md" nowrap valign="top">const bvector&lt; Alloc, MS &gt; &amp;&nbsp;</td>
 
389
          <td class="mdname" nowrap> <em>v1</em>, </td>
 
390
        </tr>
 
391
        <tr>
 
392
          <td class="md" nowrap align="right"></td>
 
393
          <td class="md"></td>
 
394
          <td class="md" nowrap>const bvector&lt; Alloc, MS &gt; &amp;&nbsp;</td>
 
395
          <td class="mdname" nowrap> <em>v2</em></td>
 
396
        </tr>
 
397
        <tr>
 
398
          <td class="md"></td>
 
399
          <td class="md">)&nbsp;</td>
 
400
          <td class="md" colspan="2"><code> [inline]</code></td>
 
401
        </tr>
 
402
      </table>
 
403
    </td>
 
404
  </tr>
 
405
</table>
 
406
<table cellspacing="5" cellpadding="0" border="0">
 
407
  <tr>
 
408
    <td>
 
409
      &nbsp;
 
410
    </td>
 
411
    <td>
 
412
 
 
413
<p>
 
414
 
 
415
<p>
 
416
Definition at line <a class="el" href="a00137.html#l01582">1582</a> of file <a class="el" href="a00137.html">bm.h</a>.
 
417
<p>
 
418
References <a class="el" href="a00137.html#l01294">bm::bvector&lt; Alloc, MS &gt;::bit_xor()</a>.    </td>
 
419
  </tr>
 
420
</table>
 
421
<a class="anchor" name="file_a54" doxytag="bm.h::operator|"></a><p>
 
422
<table class="mdTable" cellpadding="2" cellspacing="0">
 
423
  <tr>
 
424
    <td class="mdRow">
 
425
      <table cellpadding="0" cellspacing="0" border="0">
 
426
        <tr>
 
427
          <td class="mdPrefix" colspan="4">
 
428
template&lt;class Alloc, class MS&gt; </td>
 
429
        </tr>
 
430
        <tr>
 
431
          <td class="md" nowrap valign="top">bvector&lt;Alloc, MS&gt; operator|           </td>
 
432
          <td class="md" valign="top">(&nbsp;</td>
 
433
          <td class="md" nowrap valign="top">const bvector&lt; Alloc, MS &gt; &amp;&nbsp;</td>
 
434
          <td class="mdname" nowrap> <em>v1</em>, </td>
 
435
        </tr>
 
436
        <tr>
 
437
          <td class="md" nowrap align="right"></td>
 
438
          <td class="md"></td>
 
439
          <td class="md" nowrap>const bvector&lt; Alloc &gt; &amp;&nbsp;</td>
 
440
          <td class="mdname" nowrap> <em>v2</em></td>
 
441
        </tr>
 
442
        <tr>
 
443
          <td class="md"></td>
 
444
          <td class="md">)&nbsp;</td>
 
445
          <td class="md" colspan="2"><code> [inline]</code></td>
 
446
        </tr>
 
447
      </table>
 
448
    </td>
 
449
  </tr>
 
450
</table>
 
451
<table cellspacing="5" cellpadding="0" border="0">
 
452
  <tr>
 
453
    <td>
 
454
      &nbsp;
 
455
    </td>
 
456
    <td>
 
457
 
 
458
<p>
 
459
 
 
460
<p>
 
461
Definition at line <a class="el" href="a00137.html#l01567">1567</a> of file <a class="el" href="a00137.html">bm.h</a>.
 
462
<p>
 
463
References <a class="el" href="a00137.html#l01272">bm::bvector&lt; Alloc, MS &gt;::bit_or()</a>.    </td>
 
464
  </tr>
 
465
</table>
 
466
<hr size="1"><address style="align: right;"><small>Generated on Sun Aug 5 14:12:27 2007 for BitMagic by&nbsp;
112
467
<a href="http://www.doxygen.org/index.html">
113
468
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.1 </small></address>
114
469
</body>