Location:
S32PAGE.H
Link against: estor.lib
class MPagePool;
Interface to a page pool, the storage abstraction used by the B-trees API.
The interface is abstract and handles pages as TAny pointers. It is left to derived classes to implement page storage in a particular storage medium, such as memory or disk.
Defined in MPagePool
:
AcquireL()
, AllocL()
, AssignL()
, Delete()
, DeleteL()
, DoDeleteL()
, LockL()
, Pop()
, PushL()
, Unlock()
, UpdateL()
virtual TPageAbandonFunction AcquireL()=0;
Returns a function that abandons all locked pages for this page pool.
|
virtual TAny *LockL(TPageRef aRef)=0;
Locks a page and returns a pointer to it.
|
|
virtual TPageRef AssignL(const TAny *aPage, TPageReclamation aReclamation=EPageDeleteOnly)=0;
|
|
virtual void UpdateL(const TAny *aPage)=0;
Updates a page.
This can be used for cached pages that may have become outdated.
|
virtual void Unlock(const TAny *aPage, TPageChange aChange=EPageNoChange)=0;
Unlocks a page.
|
IMPORT_C void Delete(TPageRef aRef);
Deletes a page, ignoring any errors.
|
IMPORT_C void DeleteL(TPageRef aRef);
Deletes a page, leaving if an error occurs.
|