27
27
<li><a href="functions.html"><span>Data Fields</span></a></li>
30
<div class="navpath"><a class="el" href="a00115.html">bm</a>::<a class="el" href="a00039.html">block_allocator</a>
30
<div class="navpath"><a class="el" href="a00116.html">bm</a>::<a class="el" href="a00039.html">block_allocator</a>
33
33
<div class="contents">
34
34
<h1>bm::block_allocator Class Reference<br/>
36
[<a class="el" href="a00127.html">Memory Allocation</a>]</small>
36
[<a class="el" href="a00128.html">Memory Allocation</a>]</small>
37
37
</h1><!-- doxytag: class="bm::block_allocator" -->
38
38
<p>Default malloc based bitblock allocator class.
39
39
<a href="#_details">More...</a></p>
41
<p><code>#include <<a class="el" href="a00090_source.html">bmalloc.h</a>></code></p>
41
<p><code>#include <<a class="el" href="a00091_source.html">bmalloc.h</a>></code></p>
42
42
<table border="0" cellpadding="0" cellspacing="0">
43
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="a00115.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="a00115.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="a00115.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="a00115.html#a17fd5ba52db3ddda05e6f8dd5000a1a4">bm::word_t</a> elements, by calling free. <a href="#a68a3365e4decb87fef88c2fa9028c8e2"></a><br/></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>
49
49
<hr/><a name="_details"></a><h2>Detailed Description</h2>
50
50
<p>Default malloc based bitblock allocator class. </p>
51
51
<p>Functions allocate and deallocate conform to STL allocator specs. </p>
53
<p>Definition at line <a class="el" href="a00090_source.html#l00049">49</a> of file <a class="el" href="a00090_source.html">bmalloc.h</a>.</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
54
<hr/><h2>Member Function Documentation</h2>
55
55
<a class="anchor" id="a1b90487ff442d774f3f9d888fb0e54ba"></a><!-- doxytag: member="bm::block_allocator::allocate" ref="a1b90487ff442d774f3f9d888fb0e54ba" args="(size_t n, const void *)" -->
56
56
<div class="memitem">
57
57
<div class="memproto">
58
58
<table class="memname">
60
<td class="memname">static <a class="el" href="a00115.html#a17fd5ba52db3ddda05e6f8dd5000a1a4">bm::word_t</a>* bm::block_allocator::allocate </td>
60
<td class="memname">static <a class="el" href="a00116.html#a17fd5ba52db3ddda05e6f8dd5000a1a4">bm::word_t</a>* bm::block_allocator::allocate </td>
62
62
<td class="paramtype">size_t </td>
63
63
<td class="paramname"> <em>n</em>, </td>
78
78
<div class="memdoc">
80
<p>The member function allocates storage for an array of n <a class="el" href="a00115.html#a17fd5ba52db3ddda05e6f8dd5000a1a4">bm::word_t</a> elements, by calling malloc. </p>
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
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="a00090_source.html#l00057">57</a> of file <a class="el" href="a00090_source.html">bmalloc.h</a>.</p>
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>
110
110
<div class="memdoc">
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>
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="a00090_source.html#l00081">81</a> of file <a class="el" href="a00090_source.html">bmalloc.h</a>.</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
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>
119
<li><a class="el" href="a00091_source.html">bmalloc.h</a></li>
122
<hr size="1"/><address style="text-align: right;"><small>Generated on Fri Jan 8 20:09:20 2010 for BitMagic by
122
<hr size="1"/><address style="text-align: right;"><small>Generated on Tue Mar 23 20:48:14 2010 for BitMagic by
123
123
<a href="http://www.doxygen.org/index.html">
124
124
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address>