MPagePool Class Reference
Detailed Description
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.
Member Function Documentation
AcquireL ( )
Returns a function that abandons all locked pages for this page pool.
Returns: A function that abandons all locked pages for this page pool.
AllocL ( )
|
TAny * | AllocL | ( | ) | [pure virtual] |
AssignL ( const TAny *, TPageReclamation )
Delete ( TPageRef )
Deletes a page, ignoring any errors.
| Parameter | Description | | aRef | Reference to the page to delete |
DeleteL ( TPageRef )
Deletes a page, leaving if an error occurs.
| Parameter | Description | | aRef | Reference to the page to delete |
DoDeleteL ( TPageRef )
| void | DoDeleteL | ( | TPageRef | aRef | ) | [protected, pure virtual] |
LockL ( TPageRef )
Locks a page and returns a pointer to it.
| Parameter | Description | | aRef | Reference to the page to lock |
Pop ( )
Do a pop from the cleanup stack.
PushL ( )
Pushes this object onto the cleanup stack.
Unlock ( const TAny *, TPageChange )
| void | Unlock | ( | const TAny * | aPage, |
| | TPageChange | aChange = EPageNoChange |
| | ) | [pure virtual] |
| Parameter | Description | | aPage | Page to unlock |
| aChange | How the page should be treated once it is unlocked |
UpdateL ( const TAny * )
| void | UpdateL | ( | const TAny * | aPage | ) | [pure virtual] |
Updates a page.
This can be used for cached pages that may have become outdated.
| Parameter | Description | | aPage | Page to update |