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

OsclMemAllocator Class Reference
[OSCL MemoryOSCL Memory]

#include <oscl_mem.h>

Inheritance diagram for OsclMemAllocator:

Oscl_DefAlloc Oscl_Alloc Oscl_Dealloc

Public Methods

OsclAnyallocate (const uint32 n)
OsclAnyallocate_fl (const uint32 n, const char *file_name, const int line_num)
void deallocate (OsclAny *p)

Detailed Description

A simple allocator class. Configurable as to whether this goes through the memory manager or not.


Member Function Documentation

OsclAny* OsclMemAllocator::allocate const uint32    n [inline, virtual]
 

This API throws an exception when malloc returns NULL. n must be greater than 0.

Returns:
pointer (or Leave with OsclErrNoMemory )

Implements Oscl_DefAlloc.

OsclAny* OsclMemAllocator::allocate_fl const uint32    n,
const char *    file_name,
const int    line_num
[inline, virtual]
 

Reimplemented from Oscl_DefAlloc.

void OsclMemAllocator::deallocate OsclAny   p [inline, virtual]
 

Implements Oscl_DefAlloc.


The documentation for this class was generated from the following file:
OSCL API
Posting Version: OPENCORE_20090310