27
27
<li><a href="functions.html"><span>Data Fields</span></a></li>
30
<div class="navpath"><a class="el" href="a00116.html">bm</a>::<a class="el" href="a00039.html">block_allocator</a>
30
<div class="navpath"><a class="el" href="a00115.html">bm</a>::<a class="el" href="a00043.html">bvector</a>::<a class="el" href="a00071.html">iterator_base</a>::<a class="el" href="a00039.html">block_descr</a>
33
33
<div class="contents">
34
<h1>bm::block_allocator Class Reference<br/>
36
[<a class="el" href="a00128.html">Memory Allocation</a>]</small>
37
</h1><!-- doxytag: class="bm::block_allocator" -->
38
<p>Default malloc based bitblock allocator class.
39
<a href="#_details">More...</a></p>
41
<p><code>#include <<a class="el" href="a00091_source.html">bmalloc.h</a>></code></p>
34
<h1>bm::bvector< Alloc >::iterator_base::block_descr Union Reference</h1><!-- doxytag: class="bm::bvector::iterator_base::block_descr" -->
35
<p><code>#include <<a class="el" href="a00087_source.html">bm.h</a>></code></p>
36
<div class="dynheader">
37
Collaboration diagram for bm::bvector< Alloc >::iterator_base::block_descr:</div>
38
<div class="dynsection">
39
<div class="center"><img src="a00242.png" border="0" usemap="#bm_1_1bvector_3_01Alloc_01_4_1_1iterator__base_1_1block__descr_coll__map" alt="Collaboration graph"/></div>
40
<map name="bm_1_1bvector_3_01Alloc_01_4_1_1iterator__base_1_1block__descr_coll__map" id="bm_1_1bvector_3_01Alloc_01_4_1_1iterator__base_1_1block__descr_coll__map">
41
<area shape="rect" href="a00059.html" title="Information about current DGAP block." alt="" coords="15,5,316,35"/><area shape="rect" href="a00034.html" title="Information about current bitblock." alt="" coords="7,59,324,88"/></map>
42
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
42
43
<table border="0" cellpadding="0" cellspacing="0">
43
<tr><td colspan="2"><h2>Static Public Member Functions</h2></td></tr>
44
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="a00116.html#a17fd5ba52db3ddda05e6f8dd5000a1a4">bm::word_t</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="a00039.html#a1b90487ff442d774f3f9d888fb0e54ba">allocate</a> (size_t n, const void *)</td></tr>
45
<tr><td class="mdescLeft"> </td><td class="mdescRight">The member function allocates storage for an array of n <a class="el" href="a00116.html#a17fd5ba52db3ddda05e6f8dd5000a1a4">bm::word_t</a> elements, by calling malloc. <a href="#a1b90487ff442d774f3f9d888fb0e54ba"></a><br/></td></tr>
46
<tr><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00039.html#a68a3365e4decb87fef88c2fa9028c8e2">deallocate</a> (<a class="el" href="a00116.html#a17fd5ba52db3ddda05e6f8dd5000a1a4">bm::word_t</a> *p, size_t)</td></tr>
47
<tr><td class="mdescLeft"> </td><td class="mdescRight">The member function frees storage for an array of n <a class="el" href="a00116.html#a17fd5ba52db3ddda05e6f8dd5000a1a4">bm::word_t</a> elements, by calling free. <a href="#a68a3365e4decb87fef88c2fa9028c8e2"></a><br/></td></tr>
44
<tr><td colspan="2"><h2>Data Fields</h2></td></tr>
45
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00034.html">bitblock_descr</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="a00039.html#afdae70a22a7b7d8a0ae9e6728ec628ed">bit_</a></td></tr>
46
<tr><td class="mdescLeft"> </td><td class="mdescRight">BitBlock related info. <a href="#afdae70a22a7b7d8a0ae9e6728ec628ed"></a><br/></td></tr>
47
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00059.html">dgap_descr</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="a00039.html#a7f39ef2f352d0b449bfb6c2d9134fc56">gap_</a></td></tr>
48
<tr><td class="mdescLeft"> </td><td class="mdescRight">DGAP block related info. <a href="#a7f39ef2f352d0b449bfb6c2d9134fc56"></a><br/></td></tr>
49
50
<hr/><a name="_details"></a><h2>Detailed Description</h2>
50
<p>Default malloc based bitblock allocator class. </p>
51
<p>Functions allocate and deallocate conform to STL allocator specs. </p>
53
<p>Definition at line <a class="el" href="a00091_source.html#l00049">49</a> of file <a class="el" href="a00091_source.html">bmalloc.h</a>.</p>
54
<hr/><h2>Member Function Documentation</h2>
55
<a class="anchor" id="a1b90487ff442d774f3f9d888fb0e54ba"></a><!-- doxytag: member="bm::block_allocator::allocate" ref="a1b90487ff442d774f3f9d888fb0e54ba" args="(size_t n, const void *)" -->
57
<div class="memproto">
58
<table class="memname">
60
<td class="memname">static <a class="el" href="a00116.html#a17fd5ba52db3ddda05e6f8dd5000a1a4">bm::word_t</a>* bm::block_allocator::allocate </td>
62
<td class="paramtype">size_t </td>
63
<td class="paramname"> <em>n</em>, </td>
66
<td class="paramkey"></td>
68
<td class="paramtype">const void * </td>
69
<td class="paramname"></td><td> </td>
74
<td></td><td></td><td><code> [inline, static]</code></td>
80
<p>The member function allocates storage for an array of n <a class="el" href="a00116.html#a17fd5ba52db3ddda05e6f8dd5000a1a4">bm::word_t</a> elements, by calling malloc. </p>
81
<dl class="return"><dt><b>Returns:</b></dt><dd>pointer to the allocated memory. </dd></dl>
83
<p>Definition at line <a class="el" href="a00091_source.html#l00057">57</a> of file <a class="el" href="a00091_source.html">bmalloc.h</a>.</p>
87
<a class="anchor" id="a68a3365e4decb87fef88c2fa9028c8e2"></a><!-- doxytag: member="bm::block_allocator::deallocate" ref="a68a3365e4decb87fef88c2fa9028c8e2" args="(bm::word_t *p, size_t)" -->
89
<div class="memproto">
90
<table class="memname">
92
<td class="memname">static void bm::block_allocator::deallocate </td>
94
<td class="paramtype"><a class="el" href="a00116.html#a17fd5ba52db3ddda05e6f8dd5000a1a4">bm::word_t</a> * </td>
95
<td class="paramname"> <em>p</em>, </td>
98
<td class="paramkey"></td>
100
<td class="paramtype">size_t </td>
101
<td class="paramname"></td><td> </td>
106
<td></td><td></td><td><code> [inline, static]</code></td>
112
<p>The member function frees storage for an array of n <a class="el" href="a00116.html#a17fd5ba52db3ddda05e6f8dd5000a1a4">bm::word_t</a> elements, by calling free. </p>
114
<p>Definition at line <a class="el" href="a00091_source.html#l00081">81</a> of file <a class="el" href="a00091_source.html">bmalloc.h</a>.</p>
118
<hr/>The documentation for this class was generated from the following file:<ul>
119
<li><a class="el" href="a00091_source.html">bmalloc.h</a></li>
51
<h3>template<class Alloc><br/>
52
union bm::bvector< Alloc >::iterator_base::block_descr</h3>
54
<p>Block type dependent information for current block. </p>
56
<p>Definition at line <a class="el" href="a00087_source.html#l00313">313</a> of file <a class="el" href="a00087_source.html">bm.h</a>.</p>
57
<hr/><h2>Field Documentation</h2>
58
<a class="anchor" id="afdae70a22a7b7d8a0ae9e6728ec628ed"></a><!-- doxytag: member="bm::bvector::iterator_base::block_descr::bit_" ref="afdae70a22a7b7d8a0ae9e6728ec628ed" args="" -->
60
<div class="memproto">
61
<div class="memtemplate">
62
template<class Alloc> </div>
63
<table class="memname">
65
<td class="memname"><a class="el" href="a00034.html">bitblock_descr</a> <a class="el" href="a00043.html">bm::bvector</a>< Alloc >::<a class="el" href="a00039.html#afdae70a22a7b7d8a0ae9e6728ec628ed">iterator_base::block_descr::bit_</a></td>
71
<p>BitBlock related info. </p>
73
<p>Definition at line <a class="el" href="a00087_source.html#l00315">315</a> of file <a class="el" href="a00087_source.html">bm.h</a>.</p>
77
<a class="anchor" id="a7f39ef2f352d0b449bfb6c2d9134fc56"></a><!-- doxytag: member="bm::bvector::iterator_base::block_descr::gap_" ref="a7f39ef2f352d0b449bfb6c2d9134fc56" args="" -->
79
<div class="memproto">
80
<div class="memtemplate">
81
template<class Alloc> </div>
82
<table class="memname">
84
<td class="memname"><a class="el" href="a00059.html">dgap_descr</a> <a class="el" href="a00043.html">bm::bvector</a>< Alloc >::<a class="el" href="a00039.html#a7f39ef2f352d0b449bfb6c2d9134fc56">iterator_base::block_descr::gap_</a></td>
90
<p>DGAP block related info. </p>
92
<p>Definition at line <a class="el" href="a00087_source.html#l00316">316</a> of file <a class="el" href="a00087_source.html">bm.h</a>.</p>
96
<hr/>The documentation for this union was generated from the following file:<ul>
97
<li><a class="el" href="a00087_source.html">bm.h</a></li>
122
<hr size="1"/><address style="text-align: right;"><small>Generated on Tue Mar 23 20:48:14 2010 for BitMagic by
100
<hr size="1"/><address style="text-align: right;"><small>Generated on Sun Apr 25 09:37:45 2010 for BitMagic by
123
101
<a href="http://www.doxygen.org/index.html">
124
102
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address>