|
||
class CMemPagePool : public CBase, public MPagePool;
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.
MPagePool
-
Interface to a page pool, the storage abstraction used by the B-trees API.
CBase
-
Base class for all classes to be instantiated on the heap.
CMemPagePool
-
Uses memory to implement the MPagePool page pool interface.
Defined in CMemPagePool
:
AcquireL()
For memory-based pools, there is no need to abandon pages, so the function retur...AllocL()
Allocates a new unassigned page.AssignL(const TAny *,TPageReclamation)
CMemPagePool()
Default constructor. DoDeleteL(TPageRef)
LockL(TPageRef)
Returns a pointer to a specified page.NewL()
Allocates and constructs a new CMemPagePool object.NewLC()
Allocates and constructs a new CMemPagePool object, and leaves it on the cleanup...Unlock(const TAny *,TPageChange)
Unlocks a page.UpdateL(const TAny *)
Updates a page.~CMemPagePool()
Destructor.Inherited from CBase
:
Delete(CBase *)
Deletes the specified object.Extension_(TUint,TAny *&,TAny *)
Extension function operator new(TUint)
Allocates the object from the heap and then initialises its contents to binary z...operator new(TUint,TAny *)
Initialises the object to binary zeroes.operator new(TUint,TLeave)
Allocates the object from the heap and then initialises its contents to binary z...operator new(TUint,TLeave,TUint)
Allocates the object from the heap and then initialises its contents to binary z...operator new(TUint,TUint)
Allocates the object from the heap and then initialises its contents to binary z...Inherited from MPagePool
:
Delete(TPageRef)
Deletes a page, ignoring any errors.DeleteL(TPageRef)
Deletes a page, leaving if an error occurs.Pop()
Do a pop from the cleanup stack. PushL()
Pushes this object onto the cleanup stack. IMPORT_C static CMemPagePool* NewL();
Allocates and constructs a new CMemPagePool object.
|
IMPORT_C static CMemPagePool* NewLC();
Allocates and constructs a new CMemPagePool object, and leaves it on the cleanup stack.
|
IMPORT_C virtual TPageAbandonFunction AcquireL();
For memory-based pools, there is no need to abandon pages, so the function returned does nothing.
|
IMPORT_C virtual TAny* AllocL();
Allocates a new unassigned page.
|
IMPORT_C virtual TAny* LockL(TPageRef aRef);
Returns a pointer to a specified page.
|
|
IMPORT_C virtual TPageRef AssignL(const TAny *aPage, TPageReclamation aReclamation=EPageDeleteOnly);
|
|
IMPORT_C virtual void UpdateL(const TAny *aPage);
Updates a page.
This can be used for cached pages that may have become outdated.
|
IMPORT_C virtual void Unlock(const TAny *aPage, TPageChange aChange=EPageNoChange);
Unlocks a page.
|