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_C CMemPagePool ( )

Default constructor.

~CMemPagePool()

IMPORT_C ~CMemPagePool ( )

Destructor.

On destruction, memory for all pages is freed.

Member Functions Documentation

AcquireL()

IMPORT_C TPageAbandonFunction AcquireL ( )

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 TPageRef AssignL ( const TAny * aPage,
TPageReclamation aReclamation = EPageDeleteOnly
)

Parameters

const TAny * aPage
TPageReclamation aReclamation = EPageDeleteOnly

DoAbandon(MPagePool &)

void DoAbandon ( MPagePool & aPool ) [private, static]

Parameters

MPagePool & aPool

DoDeleteL(TPageRef)

IMPORT_C void DoDeleteL ( TPageRef aRef ) [protected]

Parameters

TPageRef aRef

LockL(TPageRef)

IMPORT_C TAny * LockL ( TPageRef aRef )

Returns a pointer to a specified page.

Parameters

TPageRef aRef Reference 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 ( TPageRef aRef ) [private]

Parameters

TPageRef aRef

Unlock(const TAny *, TPageChange)

IMPORT_C void Unlock ( const TAny * aPage,
TPageChange aChange = EPageNoChange
)

Parameters

const TAny * aPage
TPageChange aChange = EPageNoChange

UpdateL(const TAny *)

IMPORT_C void UpdateL ( const TAny * aPage )

Parameters

const TAny * aPage

Member Data Documentation

CArrayFixSeg< TAny * > iPages

CArrayFixSeg < TAny * > iPages [private]