#include <s32page.h>
| class CMemPagePool : public CBase |
| Public Member Functions | |
|---|---|
| CMemPagePool() | |
| ~CMemPagePool() | |
| IMPORT_C TPageAbandonFunction | AcquireL() |
| IMPORT_C TAny * | AllocL() |
| IMPORT_C TPageRef | AssignL(const TAny *, TPageReclamation) |
| IMPORT_C TAny * | LockL(TPageRef) |
| IMPORT_C CMemPagePool * | NewL() |
| IMPORT_C CMemPagePool * | NewLC() |
| IMPORT_C void | Unlock(const TAny *, TPageChange) |
| IMPORT_C void | UpdateL(const TAny *) |
| Protected Member Functions | |
|---|---|
| IMPORT_C void | DoDeleteL(TPageRef) |
Uses memory to implement the MPagePool page pool interface.
The class allocates pages from the default heap, storing them in an array. This pool is not persistent.
| IMPORT_C | ~CMemPagePool | ( | ) |
Destructor.
On destruction, memory for all pages is freed.
| IMPORT_C TPageAbandonFunction | AcquireL | ( | ) |
For memory-based pools, there is no need to abandon pages, so the function returned does nothing.
Returns: Function that does nothing.
| IMPORT_C TPageRef | AssignL | ( | const TAny * | aPage, |
| TPageReclamation | aReclamation = EPageDeleteOnly | |||
| ) | ||||
| IMPORT_C CMemPagePool * | NewL | ( | ) | [static] |
Allocates and constructs a new CMemPagePool object.
Returns: New CMemPagePool object
| IMPORT_C CMemPagePool * | NewLC | ( | ) | [static] |
Allocates and constructs a new CMemPagePool object, and leaves it on the cleanup stack.
Returns: New CMemPagePool object
| IMPORT_C void | Unlock | ( | const TAny * | aPage, |
| TPageChange | aChange = EPageNoChange | |||
| ) | ||||