blob: 5461af71c4a18da57612d40a6d2f63b72f8d9259 [file] [log] [blame]
<!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>oscl_base_alloc.h Source File</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> &nbsp; <a class="qindex" href="modules.html">Modules</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="annotated.html">Data Structures</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Data Fields</a> &nbsp; <a class="qindex" href="globals.html">Globals</a> &nbsp; </center>
<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>
00002 <span class="comment">// = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =</span>
00003
00004 <span class="comment">// O S C L _ B A S E _ A L L O C</span>
00005
00006 <span class="comment">// = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =</span>
00007
00019 <span class="preprocessor">#ifndef OSCL_BASE_ALLOC_H_INCLUDED</span>
00020 <span class="preprocessor"></span><span class="preprocessor">#define OSCL_BASE_ALLOC_H_INCLUDED</span>
00021 <span class="preprocessor"></span>
00022 <span class="preprocessor">#include "<a class="code" href="osclconfig_8h.html">osclconfig.h</a>"</span>
00023 <span class="preprocessor">#include "<a class="code" href="oscl__defalloc_8h.html">oscl_defalloc.h</a>"</span>
00024 <span class="preprocessor">#include "<a class="code" href="osclconfig__memory_8h.html">osclconfig_memory.h</a>"</span>
00025
<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>
00034 {
00035 <span class="keyword">public</span>:
<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)
00037 {
00038 <span class="keywordflow">return</span> malloc(size);
00039 }
00040
<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)
00042 {
00043 free(p);
00044 }
00045
<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>() {}
00047 };
00048
00051 <span class="preprocessor">#endif // OSCL_BASE_H_INCLUDED</span>
</pre></div><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>