Location:
s32file.h
Link against: estor.lib
TCachePagePool
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.
|
Defined in TCachePagePool:
AcquireL(), AllocL(), AssignL(), Flush(), FlushL(), LockL(), Purge(), Set(), Unlock(), UpdateL()
Inherited from MPagePool:
Delete(),
DeleteL(),
Pop(),
PushL()
TPageAbandonFunction AcquireL();
Returns a function that abandons all locked pages for this page pool.
|
TPageRef AssignL(const TAny* aPage,TPageReclamation aReclamation=EPageDeleteOnly);
Assigns a reference to a new page and unlocks it.
|
|
TInt Flush();
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.
|
void FlushL();
Flushes all pages in this pool from the cache, leaving with a system-wide error code if an error occurs.
TAny* LockL(TPageRef aRef);
Locks a page and returns a pointer to it.
|
|
void Purge();
Purge all pages in this pool from the cache.
This discards all pages from the cache, without saving dirty pages.
void Set(CPageCache& aCache);
Sets the page cache for the pool.
|
void Unlock(const TAny* aPage,TPageChange aChange=EPageNoChange);
Unlocks a page.
|
void UpdateL(const TAny* aPage);
Updates a page.
|