Sophie

Sophie

distrib > Fedora > 16 > i386 > by-pkgid > 4bc66056a634db26a1f4d0845dc41ca6 > files > 6703

mrpt-doc-0.9.5-0.1.20110925svn2670.fc16.i686.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>Memory allocation</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<div align="left"><a href="http://www.mrpt.org/">Main MRPT website</a> &gt; <b>C++ reference</b> </div>
<div align="right">
<a href="index.html"><img border="0" src="mrpt_logo.png" alt="MRPT logo"></a>
</div>
<!-- Generated by Doxygen 1.7.5 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
          <div class="left">
            <form id="FSearchBox" action="search.php" method="get">
              <img id="MSearchSelect" src="search/mag.png" alt=""/>
              <input type="text" id="MSearchField" name="query" value="Search" size="20" accesskey="S" 
                     onfocus="searchBox.OnSearchFieldFocus(true)" 
                     onblur="searchBox.OnSearchFieldFocus(false)"/>
            </form>
          </div><div class="right"></div>
        </div>
      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#func-members">Functions</a> &#124;
<a href="#var-members">Variables</a>  </div>
  <div class="headertitle">
<div class="title">Memory allocation</div>  </div>
<div class="ingroups"><a class="el" href="group__nanoflann__grp.html">nanoflann C++ library for ANN</a></div></div>
<div class="contents">
<div class="dynheader">
Collaboration diagram for Memory allocation:</div>
<div class="dyncontent">
<center><table><tr><td><img src="group__memalloc__grp.png" border="0" alt="" usemap="#group____memalloc____grp"/>
<map name="group____memalloc____grp" id="group____memalloc____grp">
<area shape="rect" id="node2" href="group__nanoflann__grp.html" title="nanoflann C++ library for ANN" alt="" coords="6,5,205,32"/></map>
</td></tr></table></center>
</div>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnanoflann_1_1_pooled_allocator.html">nanoflann::PooledAllocator</a></td></tr>
<tr><td colspan="2"><h2><a name="func-members"></a>
Functions</h2></td></tr>
<tr><td class="memTemplParams" colspan="2">template&lt;typename T &gt; </td></tr>
<tr><td class="memTemplItemLeft" align="right" valign="top">T *&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__memalloc__grp.html#ga477667da2a8edb1d65f5a7eebaffc1eb">nanoflann::allocate</a> (size_t count=1)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Allocates (using C's malloc) a generic type T.  <a href="#ga477667da2a8edb1d65f5a7eebaffc1eb"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="var-members"></a>
Variables</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__memalloc__grp.html#ga40956ef8f797399b4f478df9fc1566f4">nanoflann::WORDSIZE</a> = 16</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Pooled storage allocator.  <a href="#ga40956ef8f797399b4f478df9fc1566f4"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__memalloc__grp.html#gaf4df087b6f47e514f6062f7ada2d19d7">nanoflann::BLOCKSIZE</a> = 8192</td></tr>
</table>
<hr/><h2>Function Documentation</h2>
<a class="anchor" id="ga477667da2a8edb1d65f5a7eebaffc1eb"></a><!-- doxytag: member="nanoflann::allocate" ref="ga477667da2a8edb1d65f5a7eebaffc1eb" args="(size_t count=1)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">T* nanoflann::allocate </td>
          <td>(</td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>count</em> = <code>1</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Allocates (using C's malloc) a generic type T. </p>
<p>Params: count = number of instances to allocate. Returns: pointer (of type T*) to memory buffer </p>

<p>Definition at line <a class="el" href="nanoflann_8hpp_source.html#l00405">405</a> of file <a class="el" href="nanoflann_8hpp_source.html">nanoflann.hpp</a>.</p>

<p>References <a class="el" href="nanoflann_8hpp_source.html#l00066">nanoflann::KNNResultSet::count</a>.</p>

</div>
</div>
<hr/><h2>Variable Documentation</h2>
<a class="anchor" id="gaf4df087b6f47e514f6062f7ada2d19d7"></a><!-- doxytag: member="nanoflann::BLOCKSIZE" ref="gaf4df087b6f47e514f6062f7ada2d19d7" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const size_t <a class="el" href="group__memalloc__grp.html#gaf4df087b6f47e514f6062f7ada2d19d7">nanoflann::BLOCKSIZE</a> = 8192</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="nanoflann_8hpp_source.html#l00428">428</a> of file <a class="el" href="nanoflann_8hpp_source.html">nanoflann.hpp</a>.</p>

<p>Referenced by <a class="el" href="nanoflann_8hpp_source.html#l00479">nanoflann::PooledAllocator::malloc()</a>.</p>

</div>
</div>
<a class="anchor" id="ga40956ef8f797399b4f478df9fc1566f4"></a><!-- doxytag: member="nanoflann::WORDSIZE" ref="ga40956ef8f797399b4f478df9fc1566f4" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const size_t <a class="el" href="group__memalloc__grp.html#ga40956ef8f797399b4f478df9fc1566f4">nanoflann::WORDSIZE</a> = 16</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Pooled storage allocator. </p>
<p>The following routines allow for the efficient allocation of storage in small chunks from a specified pool. Rather than allowing each structure to be freed individually, an entire pool of storage is freed at once. This method has two advantages over just using malloc() and free(). First, it is far more efficient for allocating small objects, as there is no overhead for remembering all the information needed to free each object or consolidating fragmented memory. Second, the decision about how long to keep an object is made at the time of allocation, and there is no need to track down all the objects to free them. </p>

<p>Definition at line <a class="el" href="nanoflann_8hpp_source.html#l00427">427</a> of file <a class="el" href="nanoflann_8hpp_source.html">nanoflann.hpp</a>.</p>

<p>Referenced by <a class="el" href="nanoflann_8hpp_source.html#l00479">nanoflann::PooledAllocator::malloc()</a>.</p>

</div>
</div>
</div>
<br><hr><br> <table border="0" width="100%"> <tr> <td> Page generated by <a href="http://www.doxygen.org" target="_blank">Doxygen 1.7.5</a> for MRPT 0.9.5 SVN: at Sun Sep 25 17:20:18 UTC 2011</td><td></td> <td width="100"> </td> <td width="150">  </td></tr> </table>  </body></html>