Main Page   Modules   Class Hierarchy   Data Structures   File List   Data Fields   Globals   Related Pages  

oscl_base_alloc.h

Go to the documentation of this file.
00001 // -*- c++ -*-
00002 // = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
00003 
00004 //                           O S C L _ B A S E _ A L L O C
00005 
00006 // = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
00007 
00019 #ifndef OSCL_BASE_ALLOC_H_INCLUDED
00020 #define OSCL_BASE_ALLOC_H_INCLUDED
00021 
00022 #include "osclconfig.h"
00023 #include "oscl_defalloc.h"
00024 #include "osclconfig_memory.h"
00025 
00033 class _OsclBasicAllocator: public Oscl_DefAlloc
00034 {
00035     public:
00036         OsclAny* allocate(const uint32 size)
00037         {
00038             return malloc(size);
00039         }
00040 
00041         void deallocate(OsclAny *p)
00042         {
00043             free(p);
00044         }
00045 
00046         virtual ~_OsclBasicAllocator() {}
00047 };
00048 
00051 #endif  // OSCL_BASE_H_INCLUDED

OSCL API
Posting Version: CORE_8.000.1.1_RC4