Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



Location: S32PAGE.H
Link against: estor.lib

Class CMemPagePool

class CMemPagePool : public CBase, public MPagePool;

Description

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.

Derivation

Members

Defined in CMemPagePool:
AcquireL(), AllocL(), AssignL(), CMemPagePool(), DoDeleteL(), LockL(), NewL(), NewLC(), Unlock(), UpdateL(), ~CMemPagePool()

Inherited from CBase:
Delete(), Extension_(), operator new()

Inherited from MPagePool:
DeleteL(), Pop(), PushL()


Construction and destruction


NewL()

static IMPORT_C CMemPagePool *NewL();

Description

Allocates and constructs a new CMemPagePool object.

Return value

CMemPagePool *

New CMemPagePool object


NewLC()

static IMPORT_C CMemPagePool *NewLC();

Description

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

Return value

CMemPagePool *

New CMemPagePool object


CMemPagePool()

IMPORT_C CMemPagePool();

Description

Default constructor.


~CMemPagePool()

IMPORT_C ~CMemPagePool();

Description

Destructor.

On destruction, memory for all pages is freed.

[Top]


Member functions


AcquireL()

virtual IMPORT_C TPageAbandonFunction AcquireL();

Description

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

Return value

TPageAbandonFunction

Function that does nothing.


AllocL()

virtual IMPORT_C TAny *AllocL();

Description

Allocates a new unassigned page.

Return value

TAny *

Newly allocated page.


LockL()

virtual IMPORT_C TAny *LockL(TPageRef aRef);

Description

Returns a pointer to a specified page.

Parameters

TPageRef aRef

Reference to the page to get

Return value

TAny *

Page specified by aRef


AssignL()

virtual IMPORT_C TPageRef AssignL(const TAny *aPage, TPageReclamation aReclamation=EPageDeleteOnly);

Description

Parameters

const TAny *aPage

TPageReclamation aReclamation

Return value

TPageRef


UpdateL()

virtual IMPORT_C void UpdateL(const TAny *aPage);

Description

Updates a page.

This can be used for cached pages that may have become outdated.

Parameters

const TAny *aPage

Page to update


Unlock()

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

Description

Unlocks a page.

Parameters

const TAny *aPage

Page to unlock

TPageChange aChange

How the page should be treated once it is unlocked


DoDeleteL()

protected: virtual IMPORT_C void DoDeleteL(TPageRef aRef);

Description

Parameters

TPageRef aRef