~ubuntu-branches/ubuntu/trusty/bmagic/trusty

« back to all changes in this revision

Viewing changes to doc/html/a00077.html

  • Committer: Bazaar Package Importer
  • Author(s): Roberto C. Sanchez
  • Date: 2011-03-03 12:22:16 UTC
  • mfrom: (4.1.8 sid)
  • Revision ID: james.westby@ubuntu.com-20110303122216-qll5migewxnxe3s5
Tags: 3.7.0-1
* New upstream release (Closes: #615929)
* Update to Standards-Version 3.9.1 (no changes)
* Specify Debian source format as '3.0 (quilt)'

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
<html xmlns="http://www.w3.org/1999/xhtml">
3
3
<head>
4
4
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
5
 
<title>BitMagic: bm::operation_functions&lt; T &gt; Struct Template Reference</title>
 
5
<title>BitMagic: bm::ptr_allocator Class Reference</title>
6
6
<link href="tabs.css" rel="stylesheet" type="text/css"/>
7
7
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
8
8
</head>
27
27
      <li><a href="functions.html"><span>Data&nbsp;Fields</span></a></li>
28
28
    </ul>
29
29
  </div>
30
 
  <div class="navpath"><a class="el" href="a00116.html">bm</a>::<a class="el" href="a00077.html">operation_functions</a>
 
30
  <div class="navpath"><a class="el" href="a00115.html">bm</a>::<a class="el" href="a00077.html">ptr_allocator</a>
31
31
  </div>
32
32
</div>
33
33
<div class="contents">
34
 
<h1>bm::operation_functions&lt; T &gt; Struct Template Reference</h1><!-- doxytag: class="bm::operation_functions" -->
35
 
<p><code>#include &lt;<a class="el" href="a00094_source.html">bmfunc.h</a>&gt;</code></p>
 
34
<h1>bm::ptr_allocator Class Reference<br/>
 
35
<small>
 
36
[<a class="el" href="a00127.html">Memory Allocation</a>]</small>
 
37
</h1><!-- doxytag: class="bm::ptr_allocator" -->
 
38
<p>Default malloc based bitblock allocator class.  
 
39
<a href="#_details">More...</a></p>
 
40
 
 
41
<p><code>#include &lt;<a class="el" href="a00090_source.html">bmalloc.h</a>&gt;</code></p>
36
42
<table border="0" cellpadding="0" cellspacing="0">
37
43
<tr><td colspan="2"><h2>Static Public Member Functions</h2></td></tr>
38
 
<tr><td class="memItemLeft" align="right" valign="top">static <br class="typebreak"/>
39
 
<a class="el" href="a00116.html#a18a8f03b151ca3a6d5e39e7709fb6c7c">gap_operation_to_bitset_func_type</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00077.html#a691347341c16758acd97a7cebaf2d28e">gap_op_to_bit</a> (unsigned i)</td></tr>
40
 
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="a00116.html#a8402de852093e5b23b5825f1974b9c12">gap_operation_func_type</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00077.html#adc10260f808b51e3870e1bbc7e5dffd4">gap_operation</a> (unsigned i)</td></tr>
41
 
<tr><td class="memItemLeft" align="right" valign="top">static <br class="typebreak"/>
42
 
<a class="el" href="a00116.html#ad93f96a77f223240b8c6b8f81c5db840">bit_operation_count_func_type</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00077.html#a4fc04066445af644759bf65ebf765760">bit_operation_count</a> (unsigned i)</td></tr>
43
 
<tr><td colspan="2"><h2>Static Public Attributes</h2></td></tr>
44
 
<tr><td class="memItemLeft" align="right" valign="top">static <br class="typebreak"/>
45
 
<a class="el" href="a00116.html#a18a8f03b151ca3a6d5e39e7709fb6c7c">gap_operation_to_bitset_func_type</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00077.html#aee09fac26fae4f59affa6ef4eeaea757">gap2bit_table_</a> [bm::set_END]</td></tr>
46
 
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="a00116.html#a8402de852093e5b23b5825f1974b9c12">gap_operation_func_type</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00077.html#aed0f01bb28a3bc16c7362d9fdb0e34b1">gapop_table_</a> [bm::set_END]</td></tr>
47
 
<tr><td class="memItemLeft" align="right" valign="top">static <br class="typebreak"/>
48
 
<a class="el" href="a00116.html#ad93f96a77f223240b8c6b8f81c5db840">bit_operation_count_func_type</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00077.html#a7c99937be5149113db2007bc554fbfb6">bit_op_count_table_</a> [bm::set_END]</td></tr>
 
44
<tr><td class="memItemLeft" align="right" valign="top">static void *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00077.html#a2ed8d55900bad5292e06be4af220aa38">allocate</a> (size_t n, const void *)</td></tr>
 
45
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">The member function allocates storage for an array of n void* elements, by calling malloc.  <a href="#a2ed8d55900bad5292e06be4af220aa38"></a><br/></td></tr>
 
46
<tr><td class="memItemLeft" align="right" valign="top">static void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00077.html#ad7636f410ac891c14621d7bc3784a00c">deallocate</a> (void *p, size_t)</td></tr>
 
47
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">The member function frees storage for an array of n <a class="el" href="a00115.html#a17fd5ba52db3ddda05e6f8dd5000a1a4">bm::word_t</a> elements, by calling free.  <a href="#ad7636f410ac891c14621d7bc3784a00c"></a><br/></td></tr>
49
48
</table>
50
49
<hr/><a name="_details"></a><h2>Detailed Description</h2>
51
 
<h3>template&lt;bool T&gt;<br/>
52
 
 struct bm::operation_functions&lt; T &gt;</h3>
53
 
 
54
 
 
55
 
<p>Definition at line <a class="el" href="a00094_source.html#l05077">5077</a> of file <a class="el" href="a00094_source.html">bmfunc.h</a>.</p>
 
50
<p>Default malloc based bitblock allocator class. </p>
 
51
<p>Functions allocate and deallocate conform to STL allocator specs. </p>
 
52
 
 
53
<p>Definition at line <a class="el" href="a00090_source.html#l00104">104</a> of file <a class="el" href="a00090_source.html">bmalloc.h</a>.</p>
56
54
<hr/><h2>Member Function Documentation</h2>
57
 
<a class="anchor" id="a4fc04066445af644759bf65ebf765760"></a><!-- doxytag: member="bm::operation_functions::bit_operation_count" ref="a4fc04066445af644759bf65ebf765760" args="(unsigned i)" -->
58
 
<div class="memitem">
59
 
<div class="memproto">
60
 
<div class="memtemplate">
61
 
template&lt;bool T&gt; </div>
62
 
      <table class="memname">
63
 
        <tr>
64
 
          <td class="memname">static <a class="el" href="a00116.html#ad93f96a77f223240b8c6b8f81c5db840">bit_operation_count_func_type</a> <a class="el" href="a00077.html">bm::operation_functions</a>&lt; T &gt;::bit_operation_count </td>
65
 
          <td>(</td>
66
 
          <td class="paramtype">unsigned&nbsp;</td>
67
 
          <td class="paramname"> <em>i</em></td>
68
 
          <td>&nbsp;)&nbsp;</td>
69
 
          <td><code> [inline, static]</code></td>
70
 
        </tr>
71
 
      </table>
72
 
</div>
73
 
<div class="memdoc">
74
 
 
75
 
<p>Definition at line <a class="el" href="a00094_source.html#l05099">5099</a> of file <a class="el" href="a00094_source.html">bmfunc.h</a>.</p>
76
 
 
77
 
<p>References <a class="el" href="a00094_source.html#l05084">bm::operation_functions&lt; T &gt;::bit_op_count_table_</a>.</p>
78
 
 
79
 
<p>Referenced by <a class="el" href="a00090_source.html#l00114">bm::combine_count_operation_with_block()</a>.</p>
80
 
 
81
 
</div>
82
 
</div>
83
 
<a class="anchor" id="a691347341c16758acd97a7cebaf2d28e"></a><!-- doxytag: member="bm::operation_functions::gap_op_to_bit" ref="a691347341c16758acd97a7cebaf2d28e" args="(unsigned i)" -->
84
 
<div class="memitem">
85
 
<div class="memproto">
86
 
<div class="memtemplate">
87
 
template&lt;bool T&gt; </div>
88
 
      <table class="memname">
89
 
        <tr>
90
 
          <td class="memname">static <a class="el" href="a00116.html#a18a8f03b151ca3a6d5e39e7709fb6c7c">gap_operation_to_bitset_func_type</a> <a class="el" href="a00077.html">bm::operation_functions</a>&lt; T &gt;::gap_op_to_bit </td>
91
 
          <td>(</td>
92
 
          <td class="paramtype">unsigned&nbsp;</td>
93
 
          <td class="paramname"> <em>i</em></td>
94
 
          <td>&nbsp;)&nbsp;</td>
95
 
          <td><code> [inline, static]</code></td>
96
 
        </tr>
97
 
      </table>
98
 
</div>
99
 
<div class="memdoc">
100
 
 
101
 
<p>Definition at line <a class="el" href="a00094_source.html#l05087">5087</a> of file <a class="el" href="a00094_source.html">bmfunc.h</a>.</p>
102
 
 
103
 
<p>References <a class="el" href="a00094_source.html#l05080">bm::operation_functions&lt; T &gt;::gap2bit_table_</a>.</p>
104
 
 
105
 
</div>
106
 
</div>
107
 
<a class="anchor" id="adc10260f808b51e3870e1bbc7e5dffd4"></a><!-- doxytag: member="bm::operation_functions::gap_operation" ref="adc10260f808b51e3870e1bbc7e5dffd4" args="(unsigned i)" -->
108
 
<div class="memitem">
109
 
<div class="memproto">
110
 
<div class="memtemplate">
111
 
template&lt;bool T&gt; </div>
112
 
      <table class="memname">
113
 
        <tr>
114
 
          <td class="memname">static <a class="el" href="a00116.html#a8402de852093e5b23b5825f1974b9c12">gap_operation_func_type</a> <a class="el" href="a00077.html">bm::operation_functions</a>&lt; T &gt;::gap_operation </td>
115
 
          <td>(</td>
116
 
          <td class="paramtype">unsigned&nbsp;</td>
117
 
          <td class="paramname"> <em>i</em></td>
118
 
          <td>&nbsp;)&nbsp;</td>
119
 
          <td><code> [inline, static]</code></td>
120
 
        </tr>
121
 
      </table>
122
 
</div>
123
 
<div class="memdoc">
124
 
 
125
 
<p>Definition at line <a class="el" href="a00094_source.html#l05093">5093</a> of file <a class="el" href="a00094_source.html">bmfunc.h</a>.</p>
126
 
 
127
 
<p>References <a class="el" href="a00094_source.html#l05082">bm::operation_functions&lt; T &gt;::gapop_table_</a>.</p>
128
 
 
129
 
</div>
130
 
</div>
131
 
<hr/><h2>Field Documentation</h2>
132
 
<a class="anchor" id="a7c99937be5149113db2007bc554fbfb6"></a><!-- doxytag: member="bm::operation_functions::bit_op_count_table_" ref="a7c99937be5149113db2007bc554fbfb6" args="[bm::set_END]" -->
133
 
<div class="memitem">
134
 
<div class="memproto">
135
 
<div class="memtemplate">
136
 
template&lt;bool T&gt; </div>
137
 
      <table class="memname">
138
 
        <tr>
139
 
          <td class="memname"><a class="el" href="a00116.html#ad93f96a77f223240b8c6b8f81c5db840">bit_operation_count_func_type</a> <a class="el" href="a00077.html">bm::operation_functions</a>&lt; T &gt;::<a class="el" href="a00077.html#a7c99937be5149113db2007bc554fbfb6">bit_op_count_table_</a><code> [inline, static]</code></td>
140
 
        </tr>
141
 
      </table>
142
 
</div>
143
 
<div class="memdoc">
144
 
<b>Initial value:</b><div class="fragment"><pre class="fragment"> {
145
 
    0,                            
146
 
    0,                            
147
 
    0,                            
148
 
    0,                            
149
 
    0,                            
150
 
    0,                            
151
 
    &amp;<a class="code" href="a00121.html#ga9765914087df2fc22ec18db8128f2a12" title="Performs bitblock AND operation and calculates bitcount of the result.">bit_operation_and_count</a>,     
152
 
    &amp;<a class="code" href="a00121.html#gace08ab77feefb638daee164ee83118bc" title="Performs bitblock XOR operation and calculates bitcount of the result.">bit_operation_xor_count</a>,     
153
 
    &amp;<a class="code" href="a00121.html#ga5a267aff3b56cc6dadf5a3a338e00a1d" title="Performs bitblock OR operation and calculates bitcount of the result.">bit_operation_or_count</a>,      
154
 
    &amp;<a class="code" href="a00121.html#gaabb39bf01bf973cb7bf3648873921ab7" title="Performs bitblock SUB operation and calculates bitcount of the result.">bit_operation_sub_count</a>,     
155
 
    &amp;<a class="code" href="a00121.html#ga53867faf377db72324b858a37063c0b8" title="Performs inverted bitblock SUB operation and calculates bitcount of the result.">bit_operation_sub_count_inv</a>, 
156
 
    0,                            
157
 
    0,                            
158
 
}
159
 
</pre></div>
160
 
<p>Definition at line <a class="el" href="a00094_source.html#l05084">5084</a> of file <a class="el" href="a00094_source.html">bmfunc.h</a>.</p>
161
 
 
162
 
<p>Referenced by <a class="el" href="a00094_source.html#l05099">bm::operation_functions&lt; T &gt;::bit_operation_count()</a>.</p>
163
 
 
164
 
</div>
165
 
</div>
166
 
<a class="anchor" id="aee09fac26fae4f59affa6ef4eeaea757"></a><!-- doxytag: member="bm::operation_functions::gap2bit_table_" ref="aee09fac26fae4f59affa6ef4eeaea757" args="[bm::set_END]" -->
167
 
<div class="memitem">
168
 
<div class="memproto">
169
 
<div class="memtemplate">
170
 
template&lt;bool T&gt; </div>
171
 
      <table class="memname">
172
 
        <tr>
173
 
          <td class="memname"><a class="el" href="a00116.html#a18a8f03b151ca3a6d5e39e7709fb6c7c">gap_operation_to_bitset_func_type</a> <a class="el" href="a00077.html">bm::operation_functions</a>&lt; T &gt;::<a class="el" href="a00077.html#aee09fac26fae4f59affa6ef4eeaea757">gap2bit_table_</a><code> [inline, static]</code></td>
174
 
        </tr>
175
 
      </table>
176
 
</div>
177
 
<div class="memdoc">
178
 
<b>Initial value:</b><div class="fragment"><pre class="fragment"> {
179
 
    &amp;gap_and_to_bitset&lt;bm::gap_word_t&gt;,    
180
 
    &amp;gap_add_to_bitset&lt;bm::gap_word_t&gt;,    
181
 
    &amp;gap_sub_to_bitset&lt;bm::gap_word_t&gt;,    
182
 
    &amp;gap_xor_to_bitset&lt;bm::gap_word_t&gt;,    
183
 
    0
184
 
}
185
 
</pre></div>
186
 
<p>Definition at line <a class="el" href="a00094_source.html#l05080">5080</a> of file <a class="el" href="a00094_source.html">bmfunc.h</a>.</p>
187
 
 
188
 
<p>Referenced by <a class="el" href="a00094_source.html#l05087">bm::operation_functions&lt; T &gt;::gap_op_to_bit()</a>.</p>
189
 
 
190
 
</div>
191
 
</div>
192
 
<a class="anchor" id="aed0f01bb28a3bc16c7362d9fdb0e34b1"></a><!-- doxytag: member="bm::operation_functions::gapop_table_" ref="aed0f01bb28a3bc16c7362d9fdb0e34b1" args="[bm::set_END]" -->
193
 
<div class="memitem">
194
 
<div class="memproto">
195
 
<div class="memtemplate">
196
 
template&lt;bool T&gt; </div>
197
 
      <table class="memname">
198
 
        <tr>
199
 
          <td class="memname"><a class="el" href="a00116.html#a8402de852093e5b23b5825f1974b9c12">gap_operation_func_type</a> <a class="el" href="a00077.html">bm::operation_functions</a>&lt; T &gt;::<a class="el" href="a00077.html#aed0f01bb28a3bc16c7362d9fdb0e34b1">gapop_table_</a><code> [inline, static]</code></td>
200
 
        </tr>
201
 
      </table>
202
 
</div>
203
 
<div class="memdoc">
204
 
<b>Initial value:</b><div class="fragment"><pre class="fragment"> {
205
 
    &amp;<a class="code" href="a00120.html#ga1666464d22f7fd473db9aafcf2f77a63" title="GAP AND operation.">gap_operation_and</a>,    
206
 
    &amp;<a class="code" href="a00120.html#gacda280af8910ae5fde37731a3a7a1226" title="GAP OR operation.">gap_operation_or</a>,     
207
 
    &amp;<a class="code" href="a00120.html#gabe4c83e5e162c38e297116dd1cd05ac4" title="GAP SUB (AND NOT) operation.">gap_operation_sub</a>,    
208
 
    &amp;<a class="code" href="a00120.html#gaa5e07ad0256bf784ad3397acbbd23bb2" title="GAP XOR operation.">gap_operation_xor</a>,    
209
 
    0
210
 
}
211
 
</pre></div>
212
 
<p>Definition at line <a class="el" href="a00094_source.html#l05082">5082</a> of file <a class="el" href="a00094_source.html">bmfunc.h</a>.</p>
213
 
 
214
 
<p>Referenced by <a class="el" href="a00094_source.html#l05093">bm::operation_functions&lt; T &gt;::gap_operation()</a>.</p>
215
 
 
216
 
</div>
217
 
</div>
218
 
<hr/>The documentation for this struct was generated from the following file:<ul>
219
 
<li><a class="el" href="a00094_source.html">bmfunc.h</a></li>
 
55
<a class="anchor" id="a2ed8d55900bad5292e06be4af220aa38"></a><!-- doxytag: member="bm::ptr_allocator::allocate" ref="a2ed8d55900bad5292e06be4af220aa38" args="(size_t n, const void *)" -->
 
56
<div class="memitem">
 
57
<div class="memproto">
 
58
      <table class="memname">
 
59
        <tr>
 
60
          <td class="memname">static void* bm::ptr_allocator::allocate </td>
 
61
          <td>(</td>
 
62
          <td class="paramtype">size_t&nbsp;</td>
 
63
          <td class="paramname"> <em>n</em>, </td>
 
64
        </tr>
 
65
        <tr>
 
66
          <td class="paramkey"></td>
 
67
          <td></td>
 
68
          <td class="paramtype">const void *&nbsp;</td>
 
69
          <td class="paramname"></td><td>&nbsp;</td>
 
70
        </tr>
 
71
        <tr>
 
72
          <td></td>
 
73
          <td>)</td>
 
74
          <td></td><td></td><td><code> [inline, static]</code></td>
 
75
        </tr>
 
76
      </table>
 
77
</div>
 
78
<div class="memdoc">
 
79
 
 
80
<p>The member function allocates storage for an array of n void* elements, by calling malloc. </p>
 
81
<dl class="return"><dt><b>Returns:</b></dt><dd>pointer to the allocated memory. </dd></dl>
 
82
 
 
83
<p>Definition at line <a class="el" href="a00090_source.html#l00112">112</a> of file <a class="el" href="a00090_source.html">bmalloc.h</a>.</p>
 
84
 
 
85
</div>
 
86
</div>
 
87
<a class="anchor" id="ad7636f410ac891c14621d7bc3784a00c"></a><!-- doxytag: member="bm::ptr_allocator::deallocate" ref="ad7636f410ac891c14621d7bc3784a00c" args="(void *p, size_t)" -->
 
88
<div class="memitem">
 
89
<div class="memproto">
 
90
      <table class="memname">
 
91
        <tr>
 
92
          <td class="memname">static void bm::ptr_allocator::deallocate </td>
 
93
          <td>(</td>
 
94
          <td class="paramtype">void *&nbsp;</td>
 
95
          <td class="paramname"> <em>p</em>, </td>
 
96
        </tr>
 
97
        <tr>
 
98
          <td class="paramkey"></td>
 
99
          <td></td>
 
100
          <td class="paramtype">size_t&nbsp;</td>
 
101
          <td class="paramname"></td><td>&nbsp;</td>
 
102
        </tr>
 
103
        <tr>
 
104
          <td></td>
 
105
          <td>)</td>
 
106
          <td></td><td></td><td><code> [inline, static]</code></td>
 
107
        </tr>
 
108
      </table>
 
109
</div>
 
110
<div class="memdoc">
 
111
 
 
112
<p>The member function frees storage for an array of n <a class="el" href="a00115.html#a17fd5ba52db3ddda05e6f8dd5000a1a4">bm::word_t</a> elements, by calling free. </p>
 
113
 
 
114
<p>Definition at line <a class="el" href="a00090_source.html#l00126">126</a> of file <a class="el" href="a00090_source.html">bmalloc.h</a>.</p>
 
115
 
 
116
</div>
 
117
</div>
 
118
<hr/>The documentation for this class was generated from the following file:<ul>
 
119
<li><a class="el" href="a00090_source.html">bmalloc.h</a></li>
220
120
</ul>
221
121
</div>
222
 
<hr size="1"/><address style="text-align: right;"><small>Generated on Tue Mar 23 20:48:13 2010 for BitMagic by&nbsp;
 
122
<hr size="1"/><address style="text-align: right;"><small>Generated on Sun Apr 25 09:37:46 2010 for BitMagic by&nbsp;
223
123
<a href="http://www.doxygen.org/index.html">
224
124
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address>
225
125
</body>