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

« back to all changes in this revision

Viewing changes to doc/html/a00039.html

  • Committer: Bazaar Package Importer
  • Author(s): Roberto C. Sanchez
  • Date: 2010-04-08 16:47:58 UTC
  • mfrom: (4.1.7 sid)
  • Revision ID: james.westby@ubuntu.com-20100408164758-3vu6wmrk1dnzqnnj
Tags: 3.6.4-1
* New upstream release
* Update to Standards-Version 3.8.4 (no changes)

Show diffs side-by-side

added added

removed removed

Lines of Context:
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="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>
31
31
  </div>
32
32
</div>
33
33
<div class="contents">
34
34
<h1>bm::block_allocator Class Reference<br/>
35
35
<small>
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>
40
40
 
41
 
<p><code>#include &lt;<a class="el" href="a00090_source.html">bmalloc.h</a>&gt;</code></p>
 
41
<p><code>#include &lt;<a class="el" href="a00091_source.html">bmalloc.h</a>&gt;</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> *&nbsp;</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">&nbsp;</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&nbsp;</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">&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="#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> *&nbsp;</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">&nbsp;</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&nbsp;</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">&nbsp;</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>
48
48
</table>
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>
52
52
 
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">
59
59
        <tr>
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>
61
61
          <td>(</td>
62
62
          <td class="paramtype">size_t&nbsp;</td>
63
63
          <td class="paramname"> <em>n</em>, </td>
77
77
</div>
78
78
<div class="memdoc">
79
79
 
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>
82
82
 
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>
84
84
 
85
85
</div>
86
86
</div>
91
91
        <tr>
92
92
          <td class="memname">static void bm::block_allocator::deallocate </td>
93
93
          <td>(</td>
94
 
          <td class="paramtype"><a class="el" href="a00115.html#a17fd5ba52db3ddda05e6f8dd5000a1a4">bm::word_t</a> *&nbsp;</td>
 
94
          <td class="paramtype"><a class="el" href="a00116.html#a17fd5ba52db3ddda05e6f8dd5000a1a4">bm::word_t</a> *&nbsp;</td>
95
95
          <td class="paramname"> <em>p</em>, </td>
96
96
        </tr>
97
97
        <tr>
109
109
</div>
110
110
<div class="memdoc">
111
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>
 
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>
113
113
 
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>
115
115
 
116
116
</div>
117
117
</div>
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>
120
120
</ul>
121
121
</div>
122
 
<hr size="1"/><address style="text-align: right;"><small>Generated on Fri Jan 8 20:09:20 2010 for BitMagic by&nbsp;
 
122
<hr size="1"/><address style="text-align: right;"><small>Generated on Tue Mar 23 20:48:14 2010 for BitMagic by&nbsp;
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>
125
125
</body>