CMemPagePool Class Reference

class CMemPagePool : public CBase

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.

Inherits from

Constructor & Destructor Documentation

CMemPagePool()

IMPORT_CCMemPagePool()

Default constructor.

~CMemPagePool()

IMPORT_C~CMemPagePool()

Destructor.

On destruction, memory for all pages is freed.

Member Functions Documentation

AcquireL()

IMPORT_C TPageAbandonFunctionAcquireL()

For memory-based pools, there is no need to abandon pages, so the function returned does nothing.

AllocL()

IMPORT_C TAny *AllocL()

Allocates a new unassigned page.

AssignL(const TAny *, TPageReclamation)

IMPORT_C TPageRefAssignL(const TAny *aPage,
TPageReclamationaReclamation = EPageDeleteOnly
)

Parameters

const TAny * aPage
TPageReclamation aReclamation = EPageDeleteOnly

DoAbandon(MPagePool &)

voidDoAbandon(MPagePool &aPool)[private, static]

Parameters

MPagePool & aPool

DoDeleteL(TPageRef)

IMPORT_C voidDoDeleteL(TPageRefaRef)[protected]

Parameters

TPageRef aRef

LockL(TPageRef)

IMPORT_C TAny *LockL(TPageRefaRef)

Returns a pointer to a specified page.

Parameters

TPageRef aRefReference to the page to get

NewL()

IMPORT_C CMemPagePool *NewL()[static]

Allocates and constructs a new CMemPagePool object.

NewLC()

IMPORT_C CMemPagePool *NewLC()[static]

Allocates and constructs a new CMemPagePool object, and leaves it on the cleanup stack.

PageL(TPageRef)

TAny *&PageL(TPageRefaRef)[private]

Parameters

TPageRef aRef

Unlock(const TAny *, TPageChange)

IMPORT_C voidUnlock(const TAny *aPage,
TPageChangeaChange = EPageNoChange
)

Parameters

const TAny * aPage
TPageChange aChange = EPageNoChange

UpdateL(const TAny *)

IMPORT_C voidUpdateL(const TAny *aPage)

Parameters

const TAny * aPage

Member Data Documentation

CArrayFixSeg< TAny * > iPages

CArrayFixSeg< TAny * >iPages[private]