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>oscl_base_alloc.h Source File</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_base_alloc.h</h1><a href="oscl__base__alloc_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="comment">// -*- c++ -*-</span> 1000002 <span class="comment">// = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =</span> 1100003 1200004 <span class="comment">// O S C L _ B A S E _ A L L O C</span> 1300005 1400006 <span class="comment">// = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =</span> 1500007 1600019 <span class="preprocessor">#ifndef OSCL_BASE_ALLOC_H_INCLUDED</span> 1700020 <span class="preprocessor"></span><span class="preprocessor">#define OSCL_BASE_ALLOC_H_INCLUDED</span> 1800021 <span class="preprocessor"></span> 1900022 <span class="preprocessor">#include "<a class="code" href="osclconfig_8h.html">osclconfig.h</a>"</span> 2000023 <span class="preprocessor">#include "<a class="code" href="oscl__defalloc_8h.html">oscl_defalloc.h</a>"</span> 2100024 <span class="preprocessor">#include "<a class="code" href="osclconfig__memory_8h.html">osclconfig_memory.h</a>"</span> 2200025 23<a name="l00033"></a><a class="code" href="class__OsclBasicAllocator.html">00033</a> <span class="keyword">class </span><a class="code" href="class__OsclBasicAllocator.html">_OsclBasicAllocator</a>: <span class="keyword">public</span> <a class="code" href="classOscl__DefAlloc.html">Oscl_DefAlloc</a> 2400034 { 2500035 <span class="keyword">public</span>: 26<a name="l00036"></a><a class="code" href="class__OsclBasicAllocator.html#a0">00036</a> <a class="code" href="group__osclbase.html#a25">OsclAny</a>* <a class="code" href="class__OsclBasicAllocator.html#a0">allocate</a>(<span class="keyword">const</span> uint32 size) 2700037 { 2800038 <span class="keywordflow">return</span> malloc(size); 2900039 } 3000040 31<a name="l00041"></a><a class="code" href="class__OsclBasicAllocator.html#a1">00041</a> <span class="keywordtype">void</span> <a class="code" href="class__OsclBasicAllocator.html#a1">deallocate</a>(<a class="code" href="group__osclbase.html#a25">OsclAny</a> *p) 3200042 { 3300043 free(p); 3400044 } 3500045 36<a name="l00046"></a><a class="code" href="class__OsclBasicAllocator.html#a2">00046</a> <span class="keyword">virtual</span> <a class="code" href="class__OsclBasicAllocator.html#a2">~_OsclBasicAllocator</a>() {} 3700047 }; 3800048 3900051 <span class="preprocessor">#endif // OSCL_BASE_H_INCLUDED</span> 40</pre></div><hr size="1"><img src="pvlogo_small.jpg"><address style="align: right;"><small>OSCL API</small> 41<address style="align: left;"><small>Posting Version: OPENCORE_20090310 </small> 42</small></address> 43</body> 44</html> 45