#include <s32page.h>
| class MPagePool |
| Public Member Functions | |
|---|---|
| pure virtual TPageAbandonFunction | AcquireL() |
| pure virtual TAny * | AllocL() |
| pure virtual TPageRef | AssignL(const TAny *, TPageReclamation) |
| IMPORT_C void | Delete(TPageRef) |
| IMPORT_C void | DeleteL(TPageRef) |
| pure virtual TAny * | LockL(TPageRef) |
| void | Pop() |
| IMPORT_C void | PushL() |
| pure virtual void | Unlock(const TAny *, TPageChange) |
| pure virtual void | UpdateL(const TAny *) |
| Protected Member Functions | |
|---|---|
| pure virtual void | DoDeleteL(TPageRef) |
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.
| TPageAbandonFunction | AcquireL | ( | ) | [pure virtual] |
Returns a function that abandons all locked pages for this page pool.
| TAny * | AllocL | ( | ) | [pure virtual] |
| TPageRef | AssignL | ( | const TAny * | aPage, |
| TPageReclamation | aReclamation = EPageDeleteOnly | |||
| ) | [pure virtual] | |||
| IMPORT_C void | Delete | ( | TPageRef | aRef | ) |
Deletes a page, ignoring any errors.
| Parameters | |
|---|---|
| aRef | Reference to the page to delete |
| IMPORT_C void | DeleteL | ( | TPageRef | aRef | ) |
Deletes a page, leaving if an error occurs.
| Parameters | |
|---|---|
| aRef | Reference to the page to delete |
| void | DoDeleteL | ( | TPageRef | aRef | ) | [protected, pure virtual] |
| void | Unlock | ( | const TAny * | aPage, |
| TPageChange | aChange = EPageNoChange | |||
| ) | [pure virtual] | |||
Unlocks a page.
| Parameters | |
|---|---|
| aPage | Page to unlock |
| aChange | How the page should be treated once it is unlocked |
| void | UpdateL | ( | const TAny * | aPage | ) | [pure virtual] |
Updates a page.
This can be used for cached pages that may have become outdated.
| Parameters | |
|---|---|
| aPage | Page to update |