Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

[Index] [Glossary] [Previous] [Next]



Location: s32file.h
Link against: estor.lib

Class TCachePagePool

TCachePagePool

Description

Provides a page pool with cached pages.

It is an intermediary class, used in the definition of page pools that use a cache, such as RFilePagePool and RStorePagePool.

Derivation

MPagePoolInterface to a page pool, the storage abstraction used by the B-trees API
TCachePagePoolProvides a page pool with cached pages

Defined in TCachePagePool:
AcquireL(), AllocL(), AssignL(), Flush(), FlushL(), LockL(), Purge(), Set(), Unlock(), UpdateL()

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

See also:


AcquireL()

TPageAbandonFunction AcquireL();

Description

Returns a function that abandons all locked pages for this page pool.

Return value

TPageAbandonFunction

A function that abandons all locked pages for this page pool.

[Top]


AllocL()

TAny* AllocL();

Description

Allocates an unassigned page.

Return value

TAny*

Newly allocated page.

[Top]


AssignL()

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

Description

Assigns a reference to a new page and unlocks it.

Parameters

const TAny* aPage

Page to assign

TPageReclamation aReclamation=EPageDeleteOnly

Flag for page reclaimation settings

Return value

TPageRef

Reference to page

[Top]


Flush()

TInt Flush();

Description

Flush all pages in this pool from the cache.

It ensures that any dirty pages are written into persistent storage, but does not remove them from the cache.

Return value

TInt

KErrNone if successful, otherwise another of the system-wide error codes.

[Top]


FlushL()

void FlushL();

Description

Flushes all pages in this pool from the cache, leaving with a system-wide error code if an error occurs.

[Top]


LockL()

TAny* LockL(TPageRef aRef);

Description

Locks a page and returns a pointer to it.

Parameters

TPageRef aRef

Reference to page to lock

Return value

TAny*

Locked page

[Top]


Purge()

void Purge();

Description

Purge all pages in this pool from the cache.

This discards all pages from the cache, without saving dirty pages.

[Top]


Set()

void Set(CPageCache& aCache);

Description

Sets the page cache for the pool.

Parameters

CPageCache& aCache

The page cache for the pool.

[Top]


Unlock()

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

Description

Unlocks a page.

Parameters

const TAny* aPage

Page to unlock

TPageChange aChange=EPageNoChange

How the page should be treated once it is unlocked

[Top]


UpdateL()

void UpdateL(const TAny* aPage);

Description

Updates a page.

Parameters

const TAny* aPage

Page to update