Sophie

Sophie

distrib > Mandriva > 2011.0 > i586 > by-pkgid > a16d689bc65aac5d987d5129109e6de5 > files > 361

irrlicht-doc-1.7.2-1.i586.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>Irrlicht Engine: irr::core::irrAllocator&lt; T &gt; Class Template Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<table class="irrlicht" >
  <tr valign="middle"> 
    <td><font size="2"><a class="qindex" href="index.html"><font color="#FFFFFF">Home</font></a> 
      | <a class="qindex" href="namespaces.html"><font color="#FFFFFF">Namespaces</font></a> 
      | <a class="qindex" href="hierarchy.html"><font color="#FFFFFF">Hierarchy</font></a> 
      | <a class="qindex" href="classes.html"><font color="#FFFFFF">Alphabetical 
      List</font></a> | <a class="qindex" href="annotated.html"><font color="#FFFFFF"> 
      Class list</font></a> | <a class="qindex" href="files.html"><font color="#FFFFFF">Files</font></a> 
      | <a class="qindex" href="namespacemembers.html"><font color="#FFFFFF"> 
      Namespace&nbsp;Members</font></a> | <a class="qindex" href="functions.html"><font color="#FFFFFF">Class 
      members</font></a> | <a class="qindex" href="globals.html"><font color="#FFFFFF">File 
      members</font></a> | <a class="qindex" href="pages.html"><font color="#FFFFFF">Tutorials</font></a></font> </td>
  </tr>
</table>
<!-- Generated by Doxygen 1.6.2 -->
  <div class="navpath"><a class="el" href="namespaceirr.html">irr</a>::<a class="el" href="namespaceirr_1_1core.html">core</a>::<a class="el" href="classirr_1_1core_1_1irr_allocator.html">irrAllocator</a>
  </div>
<div class="contents">
<h1>irr::core::irrAllocator&lt; T &gt; Class Template Reference</h1><!-- doxytag: class="irr::core::irrAllocator" -->
<p>Very simple allocator implementation, containers using it can be used across dll boundaries.  
<a href="#_details">More...</a></p>

<p><code>#include &lt;<a class="el" href="irr_allocator_8h_source.html">irrAllocator.h</a>&gt;</code></p>

<p><a href="classirr_1_1core_1_1irr_allocator-members.html">List of all members.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">T *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classirr_1_1core_1_1irr_allocator.html#ac4b471d893b1f19da361302af977c5c1">allocate</a> (size_t cnt)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Allocate memory for an array of objects.  <a href="#ac4b471d893b1f19da361302af977c5c1"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classirr_1_1core_1_1irr_allocator.html#a24601bd03410855534207c3e5ad7a24b">construct</a> (T *ptr, const T &amp;e)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Construct an element.  <a href="#a24601bd03410855534207c3e5ad7a24b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classirr_1_1core_1_1irr_allocator.html#a7670f5dc0be9162c669eb6ac5eae00a8">deallocate</a> (T *ptr)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Deallocate memory for an array of objects.  <a href="#a7670f5dc0be9162c669eb6ac5eae00a8"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classirr_1_1core_1_1irr_allocator.html#a59e37e05219bd2ef3e57e66db4b994eb">destruct</a> (T *ptr)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Destruct an element.  <a href="#a59e37e05219bd2ef3e57e66db4b994eb"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classirr_1_1core_1_1irr_allocator.html#afbb5a33a4fb6491be506081673fb3824">~irrAllocator</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Destructor.  <a href="#afbb5a33a4fb6491be506081673fb3824"></a><br/></td></tr>
<tr><td colspan="2"><h2>Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classirr_1_1core_1_1irr_allocator.html#abffd97ee70d7c73e5290de913e43a32c">internal_delete</a> (void *ptr)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classirr_1_1core_1_1irr_allocator.html#a8b48f4e2068c9ec931ef7bb6a244e377">internal_new</a> (size_t cnt)</td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<h3>template&lt;typename T&gt;<br/>
 class irr::core::irrAllocator&lt; T &gt;</h3>

<p>Very simple allocator implementation, containers using it can be used across dll boundaries. </p>

<p>Definition at line <a class="el" href="irr_allocator_8h_source.html#l00025">25</a> of file <a class="el" href="irr_allocator_8h_source.html">irrAllocator.h</a>.</p>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="afbb5a33a4fb6491be506081673fb3824"></a><!-- doxytag: member="irr::core::irrAllocator::~irrAllocator" ref="afbb5a33a4fb6491be506081673fb3824" args="()" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="classirr_1_1core_1_1irr_allocator.html">irr::core::irrAllocator</a>&lt; T &gt;::~<a class="el" href="classirr_1_1core_1_1irr_allocator.html">irrAllocator</a> </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Destructor. </p>

<p>Definition at line <a class="el" href="irr_allocator_8h_source.html#l00030">30</a> of file <a class="el" href="irr_allocator_8h_source.html">irrAllocator.h</a>.</p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="ac4b471d893b1f19da361302af977c5c1"></a><!-- doxytag: member="irr::core::irrAllocator::allocate" ref="ac4b471d893b1f19da361302af977c5c1" args="(size_t cnt)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">T* <a class="el" href="classirr_1_1core_1_1irr_allocator.html">irr::core::irrAllocator</a>&lt; T &gt;::allocate </td>
          <td>(</td>
          <td class="paramtype">size_t&nbsp;</td>
          <td class="paramname"> <em>cnt</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Allocate memory for an array of objects. </p>

<p>Definition at line <a class="el" href="irr_allocator_8h_source.html#l00033">33</a> of file <a class="el" href="irr_allocator_8h_source.html">irrAllocator.h</a>.</p>

<p>Referenced by <a class="el" href="_s_material_layer_8h_source.html#l00122">irr::video::SMaterialLayer::getTextureMatrix()</a>, <a class="el" href="irr_list_8h_source.html#l00308">irr::core::list&lt; ISceneNode * &gt;::insert_after()</a>, <a class="el" href="irr_list_8h_source.html#l00332">irr::core::list&lt; ISceneNode * &gt;::insert_before()</a>, <a class="el" href="_s_material_layer_8h_source.html#l00082">irr::video::SMaterialLayer::operator=()</a>, <a class="el" href="irr_list_8h_source.html#l00213">irr::core::list&lt; ISceneNode * &gt;::push_back()</a>, <a class="el" href="irr_list_8h_source.html#l00234">irr::core::list&lt; ISceneNode * &gt;::push_front()</a>, and <a class="el" href="_s_material_layer_8h_source.html#l00144">irr::video::SMaterialLayer::setTextureMatrix()</a>.</p>

</div>
</div>
<a class="anchor" id="a24601bd03410855534207c3e5ad7a24b"></a><!-- doxytag: member="irr::core::irrAllocator::construct" ref="a24601bd03410855534207c3e5ad7a24b" args="(T *ptr, const T &amp;e)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classirr_1_1core_1_1irr_allocator.html">irr::core::irrAllocator</a>&lt; T &gt;::construct </td>
          <td>(</td>
          <td class="paramtype">T *&nbsp;</td>
          <td class="paramname"> <em>ptr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const T &amp;&nbsp;</td>
          <td class="paramname"> <em>e</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Construct an element. </p>

<p>Definition at line <a class="el" href="irr_allocator_8h_source.html#l00045">45</a> of file <a class="el" href="irr_allocator_8h_source.html">irrAllocator.h</a>.</p>

<p>Referenced by <a class="el" href="_s_material_layer_8h_source.html#l00122">irr::video::SMaterialLayer::getTextureMatrix()</a>, <a class="el" href="irr_list_8h_source.html#l00308">irr::core::list&lt; ISceneNode * &gt;::insert_after()</a>, <a class="el" href="irr_list_8h_source.html#l00332">irr::core::list&lt; ISceneNode * &gt;::insert_before()</a>, <a class="el" href="_s_material_layer_8h_source.html#l00082">irr::video::SMaterialLayer::operator=()</a>, <a class="el" href="irr_list_8h_source.html#l00213">irr::core::list&lt; ISceneNode * &gt;::push_back()</a>, <a class="el" href="irr_list_8h_source.html#l00234">irr::core::list&lt; ISceneNode * &gt;::push_front()</a>, and <a class="el" href="_s_material_layer_8h_source.html#l00144">irr::video::SMaterialLayer::setTextureMatrix()</a>.</p>

</div>
</div>
<a class="anchor" id="a7670f5dc0be9162c669eb6ac5eae00a8"></a><!-- doxytag: member="irr::core::irrAllocator::deallocate" ref="a7670f5dc0be9162c669eb6ac5eae00a8" args="(T *ptr)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classirr_1_1core_1_1irr_allocator.html">irr::core::irrAllocator</a>&lt; T &gt;::deallocate </td>
          <td>(</td>
          <td class="paramtype">T *&nbsp;</td>
          <td class="paramname"> <em>ptr</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Deallocate memory for an array of objects. </p>

<p>Definition at line <a class="el" href="irr_allocator_8h_source.html#l00039">39</a> of file <a class="el" href="irr_allocator_8h_source.html">irrAllocator.h</a>.</p>

<p>Referenced by <a class="el" href="irr_list_8h_source.html#l00187">irr::core::list&lt; ISceneNode * &gt;::clear()</a>, <a class="el" href="irr_list_8h_source.html#l00354">irr::core::list&lt; ISceneNode * &gt;::erase()</a>, <a class="el" href="_s_material_layer_8h_source.html#l00082">irr::video::SMaterialLayer::operator=()</a>, and <a class="el" href="_s_material_layer_8h_source.html#l00073">irr::video::SMaterialLayer::~SMaterialLayer()</a>.</p>

</div>
</div>
<a class="anchor" id="a59e37e05219bd2ef3e57e66db4b994eb"></a><!-- doxytag: member="irr::core::irrAllocator::destruct" ref="a59e37e05219bd2ef3e57e66db4b994eb" args="(T *ptr)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classirr_1_1core_1_1irr_allocator.html">irr::core::irrAllocator</a>&lt; T &gt;::destruct </td>
          <td>(</td>
          <td class="paramtype">T *&nbsp;</td>
          <td class="paramname"> <em>ptr</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Destruct an element. </p>

<p>Definition at line <a class="el" href="irr_allocator_8h_source.html#l00051">51</a> of file <a class="el" href="irr_allocator_8h_source.html">irrAllocator.h</a>.</p>

<p>Referenced by <a class="el" href="irr_list_8h_source.html#l00187">irr::core::list&lt; ISceneNode * &gt;::clear()</a>, <a class="el" href="irr_list_8h_source.html#l00354">irr::core::list&lt; ISceneNode * &gt;::erase()</a>, <a class="el" href="_s_material_layer_8h_source.html#l00082">irr::video::SMaterialLayer::operator=()</a>, and <a class="el" href="_s_material_layer_8h_source.html#l00073">irr::video::SMaterialLayer::~SMaterialLayer()</a>.</p>

</div>
</div>
<a class="anchor" id="abffd97ee70d7c73e5290de913e43a32c"></a><!-- doxytag: member="irr::core::irrAllocator::internal_delete" ref="abffd97ee70d7c73e5290de913e43a32c" args="(void *ptr)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">virtual void <a class="el" href="classirr_1_1core_1_1irr_allocator.html">irr::core::irrAllocator</a>&lt; T &gt;::internal_delete </td>
          <td>(</td>
          <td class="paramtype">void *&nbsp;</td>
          <td class="paramname"> <em>ptr</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline, protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="irr_allocator_8h_source.html#l00063">63</a> of file <a class="el" href="irr_allocator_8h_source.html">irrAllocator.h</a>.</p>

<p>Referenced by <a class="el" href="irr_allocator_8h_source.html#l00039">irr::core::irrAllocator&lt; IMesh * &gt;::deallocate()</a>.</p>

</div>
</div>
<a class="anchor" id="a8b48f4e2068c9ec931ef7bb6a244e377"></a><!-- doxytag: member="irr::core::irrAllocator::internal_new" ref="a8b48f4e2068c9ec931ef7bb6a244e377" args="(size_t cnt)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">virtual void* <a class="el" href="classirr_1_1core_1_1irr_allocator.html">irr::core::irrAllocator</a>&lt; T &gt;::internal_new </td>
          <td>(</td>
          <td class="paramtype">size_t&nbsp;</td>
          <td class="paramname"> <em>cnt</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline, protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="irr_allocator_8h_source.html#l00058">58</a> of file <a class="el" href="irr_allocator_8h_source.html">irrAllocator.h</a>.</p>

<p>Referenced by <a class="el" href="irr_allocator_8h_source.html#l00033">irr::core::irrAllocator&lt; IMesh * &gt;::allocate()</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="irr_allocator_8h_source.html">irrAllocator.h</a></li>
</ul>
</div>
<hr size="1">
<address style="align: right;">
<small> </small>
</address>
<table width="100%" border="0" cellspacing="0" cellpadding="2">
  <tr> 
    <td width="0"> <div align="left"><small><a href="http://irrlicht.sourceforge.net" target="_blank"><img src="irrlicht.png" alt="The Irrlicht Engine" align="middle" border=0 width=88 height=31></a></small></div></td>
    <td> <div align="left"><small><em><font size="2">The <a href="http://irrlicht.sourceforge.net" target="_blank">Irrlicht 
        Engine</a> Documentation &copy; 2003-2010 by Nikolaus Gebhardt. Generated 
        on Sun Oct 24 12:42:03 2010 by <a href="http://www.doxygen.org" target="_blank">Doxygen</a> 
        (1.6.2)</font></em></small></div></td>
  </tr>
</table>
<address style="align: right;">
</address>
</body>
</html>