Location:
S32PAGE.H
Link against: estor.lib
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
Defined in CMemPagePool
:
AcquireL()
, AllocL()
, AssignL()
, CMemPagePool()
, DoDeleteL()
, LockL()
, NewL()
, NewLC()
, Unlock()
, UpdateL()
, ~CMemPagePool()
Inherited from CBase
:
Delete()
,
Extension_()
,
operator new()
Inherited from MPagePool
:
DeleteL()
,
Pop()
,
PushL()
static IMPORT_C CMemPagePool *NewL();
Allocates and constructs a new CMemPagePool object.
|
static IMPORT_C CMemPagePool *NewLC();
Allocates and constructs a new CMemPagePool object, and leaves it on the cleanup stack.
|
virtual IMPORT_C TPageAbandonFunction AcquireL();
For memory-based pools, there is no need to abandon pages, so the function returned does nothing.
|
virtual IMPORT_C TAny *AllocL();
Allocates a new unassigned page.
|
virtual IMPORT_C TAny *LockL(TPageRef aRef);
Returns a pointer to a specified page.
|
|
virtual IMPORT_C TPageRef AssignL(const TAny *aPage, TPageReclamation aReclamation=EPageDeleteOnly);
|
|
virtual IMPORT_C void UpdateL(const TAny *aPage);
Updates a page.
This can be used for cached pages that may have become outdated.
|
virtual IMPORT_C void Unlock(const TAny *aPage, TPageChange aChange=EPageNoChange);
Unlocks a page.
|