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

# OsclMemAllocator Class Reference
[OSCL Memory, OSCL Memory]

`#include <oscl_mem.h>`

Inheritance diagram for OsclMemAllocator:

## Public Methods
OsclAny * | allocate (const uint32 n)
OsclAny * | allocate_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_mem.h