1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> 2<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> 3<title> TemplateOscl_DefAllocWithRefCounter< DefAlloc > class Reference</title> 4<link href="doxygen.css" rel="stylesheet" type="text/css"> 5</head><body> 6<!-- Generated by Doxygen 1.2.18 --> 7<center> 8<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> 9<hr><h1>Oscl_DefAllocWithRefCounter< DefAlloc > Class Template Reference<br> 10<small> 11[<a class="el" href="group__osclbase.html">OSCL Base</a>]</small> 12</h1><code>#include <<a class="el" href="oscl__refcounter_8h-source.html">oscl_refcounter.h</a>></code> 13<p> 14<p>Inheritance diagram for Oscl_DefAllocWithRefCounter< DefAlloc >: 15<p><center><img src="classOscl__DefAllocWithRefCounter.png" usemap="#Oscl_DefAllocWithRefCounter< DefAlloc >_map" border="0" alt=""></center> 16<map name="Oscl_DefAllocWithRefCounter< DefAlloc >_map"> 17<area href="classOsclRefCounter.html" alt="OsclRefCounter" shape="rect" coords="0,0,255,24"> 18</map> 19<table border=0 cellpadding=0 cellspacing=0> 20<tr><td></td></tr> 21<tr><td colspan=2><br><h2>Public Methods</h2></td></tr> 22<tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="classOscl__DefAllocWithRefCounter.html#a0">Delete</a> ()</td></tr> 23<tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="classOscl__DefAllocWithRefCounter.html#a1">addRef</a> ()</td></tr> 24<tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="classOscl__DefAllocWithRefCounter.html#a2">removeRef</a> ()</td></tr> 25<tr><td nowrap align=right valign=top>uint32 </td><td valign=bottom><a class="el" href="classOscl__DefAllocWithRefCounter.html#a3">getCount</a> ()</td></tr> 26<tr><td colspan=2><br><h2>Static Public Methods</h2></td></tr> 27<tr><td nowrap align=right valign=top>Oscl_DefAllocWithRefCounter * </td><td valign=bottom><a class="el" href="classOscl__DefAllocWithRefCounter.html#d0">New</a> ()</td></tr> 28</table> 29<hr><a name="_details"></a><h2>Detailed Description</h2> 30<h3>template<class DefAlloc><br> 31 class Oscl_DefAllocWithRefCounter< DefAlloc ></h3> 32 33Implementation of an <a class="el" href="classOscl__DefAlloc.html">Oscl_DefAlloc</a> class with a built-in ref counter. 34<p> 35<hr><h2>Member Function Documentation</h2> 36<a name="a1" doxytag="Oscl_DefAllocWithRefCounter::addRef"></a><p> 37<table width="100%" cellpadding="2" cellspacing="0" border="0"> 38 <tr> 39 <td class="md"> 40 <table cellpadding="0" cellspacing="0" border="0"> 41 <tr> 42 <td class="md" colspan="4"> 43template<class DefAlloc> </td> 44 </tr> 45 <tr> 46 <td class="md" nowrap valign="top"> void Oscl_DefAllocWithRefCounter< DefAlloc >::addRef </td> 47 <td class="md" valign="top">( </td> 48 <td class="mdname1" valign="top" nowrap> </td> 49 <td class="md" valign="top">) </td> 50 <td class="md" nowrap><code> [inline, virtual]</code></td> 51 </tr> 52 53 </table> 54 </td> 55 </tr> 56</table> 57<table cellspacing=5 cellpadding=0 border=0> 58 <tr> 59 <td> 60 61 </td> 62 <td> 63 64<p> 65Add to the reference count 66<p> 67Implements <a class="el" href="classOsclRefCounter.html#a0">OsclRefCounter</a>. </td> 68 </tr> 69</table> 70<a name="a0" doxytag="Oscl_DefAllocWithRefCounter::Delete"></a><p> 71<table width="100%" cellpadding="2" cellspacing="0" border="0"> 72 <tr> 73 <td class="md"> 74 <table cellpadding="0" cellspacing="0" border="0"> 75 <tr> 76 <td class="md" colspan="4"> 77template<class DefAlloc> </td> 78 </tr> 79 <tr> 80 <td class="md" nowrap valign="top"> void Oscl_DefAllocWithRefCounter< DefAlloc >::Delete </td> 81 <td class="md" valign="top">( </td> 82 <td class="mdname1" valign="top" nowrap> </td> 83 <td class="md" valign="top">) </td> 84 <td class="md" nowrap><code> [inline]</code></td> 85 </tr> 86 87 </table> 88 </td> 89 </tr> 90</table> 91<table cellspacing=5 cellpadding=0 border=0> 92 <tr> 93 <td> 94 95 </td> 96 <td> 97 98<p> 99Delete object </td> 100 </tr> 101</table> 102<a name="a3" doxytag="Oscl_DefAllocWithRefCounter::getCount"></a><p> 103<table width="100%" cellpadding="2" cellspacing="0" border="0"> 104 <tr> 105 <td class="md"> 106 <table cellpadding="0" cellspacing="0" border="0"> 107 <tr> 108 <td class="md" colspan="4"> 109template<class DefAlloc> </td> 110 </tr> 111 <tr> 112 <td class="md" nowrap valign="top"> uint32 Oscl_DefAllocWithRefCounter< DefAlloc >::getCount </td> 113 <td class="md" valign="top">( </td> 114 <td class="mdname1" valign="top" nowrap> </td> 115 <td class="md" valign="top">) </td> 116 <td class="md" nowrap><code> [inline, virtual]</code></td> 117 </tr> 118 119 </table> 120 </td> 121 </tr> 122</table> 123<table cellspacing=5 cellpadding=0 border=0> 124 <tr> 125 <td> 126 127 </td> 128 <td> 129 130<p> 131Gets the current number of references 132<p> 133Implements <a class="el" href="classOsclRefCounter.html#a2">OsclRefCounter</a>. </td> 134 </tr> 135</table> 136<a name="d0" doxytag="Oscl_DefAllocWithRefCounter::New"></a><p> 137<table width="100%" cellpadding="2" cellspacing="0" border="0"> 138 <tr> 139 <td class="md"> 140 <table cellpadding="0" cellspacing="0" border="0"> 141 <tr> 142 <td class="md" colspan="4"> 143template<class DefAlloc> </td> 144 </tr> 145 <tr> 146 <td class="md" nowrap valign="top"> Oscl_DefAllocWithRefCounter* Oscl_DefAllocWithRefCounter< DefAlloc >::New </td> 147 <td class="md" valign="top">( </td> 148 <td class="mdname1" valign="top" nowrap> </td> 149 <td class="md" valign="top">) </td> 150 <td class="md" nowrap><code> [inline, static]</code></td> 151 </tr> 152 153 </table> 154 </td> 155 </tr> 156</table> 157<table cellspacing=5 cellpadding=0 border=0> 158 <tr> 159 <td> 160 161 </td> 162 <td> 163 164<p> 165Create object </td> 166 </tr> 167</table> 168<a name="a2" doxytag="Oscl_DefAllocWithRefCounter::removeRef"></a><p> 169<table width="100%" cellpadding="2" cellspacing="0" border="0"> 170 <tr> 171 <td class="md"> 172 <table cellpadding="0" cellspacing="0" border="0"> 173 <tr> 174 <td class="md" colspan="4"> 175template<class DefAlloc> </td> 176 </tr> 177 <tr> 178 <td class="md" nowrap valign="top"> void Oscl_DefAllocWithRefCounter< DefAlloc >::removeRef </td> 179 <td class="md" valign="top">( </td> 180 <td class="mdname1" valign="top" nowrap> </td> 181 <td class="md" valign="top">) </td> 182 <td class="md" nowrap><code> [inline, virtual]</code></td> 183 </tr> 184 185 </table> 186 </td> 187 </tr> 188</table> 189<table cellspacing=5 cellpadding=0 border=0> 190 <tr> 191 <td> 192 193 </td> 194 <td> 195 196<p> 197Delete from reference count 198<p> 199Implements <a class="el" href="classOsclRefCounter.html#a1">OsclRefCounter</a>. </td> 200 </tr> 201</table> 202<hr>The documentation for this class was generated from the following file:<ul> 203<li><a class="el" href="oscl__refcounter_8h-source.html">oscl_refcounter.h</a></ul> 204<hr size="1"><img src="pvlogo_small.jpg"><address style="align: right;"><small>OSCL API</small> 205<address style="align: left;"><small>Posting Version: OPENCORE_20090310 </small> 206</small></address> 207</body> 208</html> 209