TCachePagePool Class Reference
class TCachePagePool : public MPagePool
|
Constructor & Destructor Documentation
TCachePagePool()
TCachePagePool
|
(
|
)
|
[protected, inline]
|
TCachePagePool(CPageCache &)
TCachePagePool
|
(
|
CPageCache
&
|
aCache
|
)
|
[protected, inline]
|
Member Functions Documentation
AcquireL()
Returns a function that abandons all locked pages for this page pool.
AllocL()
IMPORT_C
TAny
*
|
AllocL
|
(
|
)
|
[virtual]
|
Allocates an unassigned page.
AssignL(const TAny *, TPageReclamation)
IMPORT_C
TPageRef
|
AssignL
|
(
|
const
TAny
*
|
aPage,
|
|
TPageReclamation
|
aReclamation = EPageDeleteOnly
|
|
)
|
[virtual]
|
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
|
DoAbandon(MPagePool &)
void
|
DoAbandon
|
(
|
MPagePool
&
|
aPool
|
)
|
[private, static]
|
DoDeleteL(TPageRef)
IMPORT_C void
|
DoDeleteL
|
(
|
TPageRef
|
aRef
|
)
|
[protected, virtual]
|
ExtendL(const TAny *, TPageReclamation)
TPageRef
|
ExtendL
|
(
|
const
TAny
*
|
aPage,
|
|
TPageReclamation
|
aReclamation
|
|
)
|
[private, pure virtual]
|
Parameters
const
TAny
* aPage
|
|
TPageReclamation
aReclamation
|
|
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.
FlushL()
Flushes all pages in this pool from the cache, leaving with a system-wide error code if an error occurs.
LockL(TPageRef)
Locks a page and returns a pointer to it.
Purge()
Purge all pages in this pool from the cache.
This discards all pages from the cache, without saving dirty pages.
ReadL(TPageRef, TAny *)
void
|
ReadL
|
(
|
TPageRef
|
aRef,
|
|
TAny
*
|
aPage
|
|
)
|
[private, pure virtual]
|
Set(CPageCache &)
Sets the page cache for the pool.
Unlock(const TAny *, TPageChange)
IMPORT_C void
|
Unlock
|
(
|
const
TAny
*
|
aPage,
|
|
TPageChange
|
aChange = EPageNoChange
|
|
)
|
[virtual]
|
Parameters
const
TAny
* aPage
|
Page to unlock
|
TPageChange
aChange = EPageNoChange
|
How the page should be treated once it is unlocked
|
UpdateL(const TAny *)
IMPORT_C void
|
UpdateL
|
(
|
const
TAny
*
|
aPage
|
)
|
[virtual]
|
Parameters
const
TAny
* aPage
|
Page to update
|
WriteL(TPageRef, const TAny *, TPageChange)
void
|
WriteL
|
(
|
TPageRef
|
aRef,
|
|
const
TAny
*
|
aPage,
|
|
TPageChange
|
aChange
|
|
)
|
[private, pure virtual]
|
Member Data Documentation
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.