CMemPagePool Class Reference
class CMemPagePool : public CBase
|
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.
Constructor & Destructor Documentation
CMemPagePool()
IMPORT_C
|
CMemPagePool
|
(
|
)
|
|
~CMemPagePool()
IMPORT_C
|
~CMemPagePool
|
(
|
)
|
|
Destructor.
On destruction, memory for all pages is freed.
Member Functions Documentation
AcquireL()
For memory-based pools, there is no need to abandon pages, so the function returned does nothing.
AllocL()
IMPORT_C
TAny
*
|
AllocL
|
(
|
)
|
|
Allocates a new unassigned page.
AssignL(const TAny *, TPageReclamation)
IMPORT_C
TPageRef
|
AssignL
|
(
|
const
TAny
*
|
aPage,
|
|
TPageReclamation
|
aReclamation = EPageDeleteOnly
|
|
)
|
|
Parameters
const
TAny
* aPage
|
|
TPageReclamation
aReclamation = EPageDeleteOnly
|
|
DoAbandon(MPagePool &)
void
|
DoAbandon
|
(
|
MPagePool
&
|
aPool
|
)
|
[private, static]
|
DoDeleteL(TPageRef)
IMPORT_C void
|
DoDeleteL
|
(
|
TPageRef
|
aRef
|
)
|
[protected]
|
LockL(TPageRef)
Returns a pointer to a specified page.
Parameters
TPageRef
aRef
|
Reference to the page to get
|
NewLC()
Allocates and constructs a new
CMemPagePool
object, and leaves it on the cleanup stack.
Unlock(const TAny *, TPageChange)
IMPORT_C void
|
Unlock
|
(
|
const
TAny
*
|
aPage,
|
|
TPageChange
|
aChange = EPageNoChange
|
|
)
|
|
Parameters
const
TAny
* aPage
|
|
TPageChange
aChange = EPageNoChange
|
|
UpdateL(const TAny *)
IMPORT_C void
|
UpdateL
|
(
|
const
TAny
*
|
aPage
|
)
|
|
Member Data Documentation
CArrayFixSeg< TAny * > iPages
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.