<!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>OsclMemBasicAllocator class Reference</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> </head><body> <!-- Generated by Doxygen 1.2.18 --> <center> <a class="qindex" href="index.html">Main Page</a> <a class="qindex" href="modules.html">Modules</a> <a class="qindex" href="hierarchy.html">Class Hierarchy</a> <a class="qindex" href="annotated.html">Data Structures</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="functions.html">Data Fields</a> <a class="qindex" href="globals.html">Globals</a> </center> <hr><h1>OsclMemBasicAllocator Class Reference<br> <small> [<a class="el" href="group__osclmemory.html">OSCL Memory</a>, <a class="el" href="group__osclmemory.html">OSCL Memory</a>]</small> </h1><code>#include <<a class="el" href="oscl__mem_8h-source.html">oscl_mem.h</a>></code> <p> <p>Inheritance diagram for OsclMemBasicAllocator: <p><center><img src="classOsclMemBasicAllocator.png" usemap="#OsclMemBasicAllocator_map" border="0" alt=""></center> <map name="OsclMemBasicAllocator_map"> <area href="classOscl__DefAlloc.html" alt="Oscl_DefAlloc" shape="rect" coords="78,56,225,80"> <area href="classOscl__Alloc.html" alt="Oscl_Alloc" shape="rect" coords="0,0,147,24"> <area href="classOscl__Dealloc.html" alt="Oscl_Dealloc" shape="rect" coords="157,0,304,24"> </map> <table border=0 cellpadding=0 cellspacing=0> <tr><td></td></tr> <tr><td colspan=2><br><h2>Public Methods</h2></td></tr> <tr><td nowrap align=right valign=top><a class="el" href="group__osclbase.html#a25">OsclAny</a> * </td><td valign=bottom><a class="el" href="classOsclMemBasicAllocator.html#a0">allocate</a> (const uint32 n)</td></tr> <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="classOsclMemBasicAllocator.html#a1">deallocate</a> (<a class="el" href="group__osclbase.html#a25">OsclAny</a> *p)</td></tr> </table> <hr><a name="_details"></a><h2>Detailed Description</h2> A simple allocator class that does not use the memory management. <p> Note: this allocator is for internal use by Oscl only. Higher level code should use <a class="el" href="classOsclMemAllocator.html">OsclMemAllocator</a>. <p> <hr><h2>Member Function Documentation</h2> <a name="a0" doxytag="OsclMemBasicAllocator::allocate"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> <a class="el" href="group__osclbase.html#a25">OsclAny</a>* OsclMemBasicAllocator::allocate </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const uint32 </td> <td class="mdname1" valign="top" nowrap> <em>n</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap><code> [inline, virtual]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> This API throws an exception when malloc returns NULL. n must be greater than 0. <p> <dl compact><dt><b>Returns: </b></dt><dd> pointer (or Leave with OsclErrNoMemory ) </dl> <p> Implements <a class="el" href="classOscl__DefAlloc.html#a0">Oscl_DefAlloc</a>. </td> </tr> </table> <a name="a1" doxytag="OsclMemBasicAllocator::deallocate"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> void OsclMemBasicAllocator::deallocate </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="group__osclbase.html#a25">OsclAny</a> * </td> <td class="mdname1" valign="top" nowrap> <em>p</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap><code> [inline, virtual]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> <p> Implements <a class="el" href="classOscl__DefAlloc.html#a2">Oscl_DefAlloc</a>. </td> </tr> </table> <hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="oscl__mem_8h-source.html">oscl_mem.h</a></ul> <hr size="1"><img src="pvlogo_small.jpg"><address style="align: right;"><small>OSCL API</small> <address style="align: left;"><small>Posting Version: OPENCORE_20090310 </small> </small></address> </body> </html>