Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <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:

Inherited from CBase:

Inherited from MPagePool:


Construction and destruction


NewL()

IMPORT_C static CMemPagePool* NewL();

Description

Allocates and constructs a new CMemPagePool object.

Return value

CMemPagePool *

New CMemPagePool object


NewLC()

IMPORT_C static 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()

IMPORT_C virtual 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()

IMPORT_C virtual TAny* AllocL();

Description

Allocates a new unassigned page.

Return value

TAny *

Newly allocated page.


LockL(TPageRef)

IMPORT_C virtual 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(const TAny *,TPageReclamation)

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

Description

Parameters

const TAny *aPage

TPageReclamation aReclamation

Return value

TPageRef


UpdateL(const TAny *)

IMPORT_C virtual 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(const TAny *,TPageChange)

IMPORT_C virtual 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(TPageRef)

protected: IMPORT_C virtual void DoDeleteL(TPageRef aRef);

Description

Parameters

TPageRef aRef