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

« back to all changes in this revision

Viewing changes to doc/html/a00078.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="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>
31
31
  </div>
32
32
</div>
33
33
<div class="contents">
34
34
<h1>bm::ptr_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::ptr_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
44
<tr><td class="memItemLeft" align="right" valign="top">static void *&nbsp;</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">&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
46
<tr><td class="memItemLeft" align="right" valign="top">static void&nbsp;</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">&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>
 
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="#ad7636f410ac891c14621d7bc3784a00c"></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#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>
82
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>
 
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>
84
84
 
85
85
</div>
86
86
</div>
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#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>
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>