<!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> TemplateMemAllocator< T > 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>MemAllocator< T > Class Template Reference<br> <small> [<a class="el" href="group__osclutil.html">OSCL Util</a>]</small> </h1><code>#include <<a class="el" href="oscl__media__data_8h-source.html">oscl_media_data.h</a>></code> <p> <table border=0 cellpadding=0 cellspacing=0> <tr><td></td></tr> <tr><td colspan=2><br><h2>Public Types</h2></td></tr> <tr><td nowrap align=right valign=top>typedef T * </td><td valign=bottom><a class="el" href="classMemAllocator.html#s0">pointer</a></td></tr> <tr><td colspan=2><br><h2>Public Methods</h2></td></tr> <tr><td nowrap align=right valign=top>virtual <a class="el" href="classMemAllocator.html#s0">pointer</a> </td><td valign=bottom><a class="el" href="classMemAllocator.html#a0">allocate</a> (void *hint=0, const int num_reserved_frags=1)=0</td></tr> <tr><td nowrap align=right valign=top>virtual void </td><td valign=bottom><a class="el" href="classMemAllocator.html#a1">deallocate</a> (<a class="el" href="classMemAllocator.html#s0">pointer</a> p)=0</td></tr> <tr><td nowrap align=right valign=top>virtual </td><td valign=bottom><a class="el" href="classMemAllocator.html#a2">~MemAllocator</a> ()</td></tr> </table> <h3>template<class T><br> class MemAllocator< T ></h3> <hr><h2>Member Typedef Documentation</h2> <a name="s0" doxytag="MemAllocator::pointer"></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" colspan="4"> template<class T> </td> </tr> <tr> <td class="md" nowrap valign="top"> typedef T* MemAllocator< T >::pointer </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <hr><h2>Constructor & Destructor Documentation</h2> <a name="a2" doxytag="MemAllocator::~MemAllocator"></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" colspan="4"> template<class T> </td> </tr> <tr> <td class="md" nowrap valign="top"> virtual MemAllocator< T >::~MemAllocator </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </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> </td> </tr> </table> <hr><h2>Member Function Documentation</h2> <a name="a0" doxytag="MemAllocator::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" colspan="4"> template<class T> </td> </tr> <tr> <td class="md" nowrap valign="top"> virtual <a class="el" href="classMemAllocator.html#s0">pointer</a> MemAllocator< T >::allocate </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">void * </td> <td class="mdname" nowrap> <em>hint</em> = 0, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>const int </td> <td class="mdname" nowrap> <em>num_reserved_frags</em> = 1</td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"><code> [pure virtual]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <a name="a1" doxytag="MemAllocator::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" colspan="4"> template<class T> </td> </tr> <tr> <td class="md" nowrap valign="top"> virtual void MemAllocator< T >::deallocate </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="classMemAllocator.html#s0">pointer</a> </td> <td class="mdname1" valign="top" nowrap> <em>p</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap><code> [pure virtual]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="oscl__media__data_8h-source.html">oscl_media_data.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>