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="a00078.html">ptr_allocator</a>
30
<div class="navpath"><a class="el" href="a00116.html">bm</a>::<a class="el" href="a00078.html">ptr_allocator</a>
33
33
<div class="contents">
34
34
<h1>bm::ptr_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::ptr_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
44
<tr><td class="memItemLeft" align="right" valign="top">static void * </td><td class="memItemRight" valign="bottom"><a class="el" href="a00078.html#a2ed8d55900bad5292e06be4af220aa38">allocate</a> (size_t n, const void *)</td></tr>
45
45
<tr><td class="mdescLeft"> </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
46
<tr><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00078.html#ad7636f410ac891c14621d7bc3784a00c">deallocate</a> (void *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="#ad7636f410ac891c14621d7bc3784a00c"></a><br/></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="#ad7636f410ac891c14621d7bc3784a00c"></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#l00104">104</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#l00104">104</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="a2ed8d55900bad5292e06be4af220aa38"></a><!-- doxytag: member="bm::ptr_allocator::allocate" ref="a2ed8d55900bad5292e06be4af220aa38" args="(size_t n, const void *)" -->
56
56
<div class="memitem">
80
80
<p>The member function allocates storage for an array of n void* 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#l00112">112</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#l00112">112</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#l00126">126</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#l00126">126</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>