#include <s32btree.h>
| class MBtreeKey |
| Public Member Functions | |
|---|---|
| pure virtual void | Between(const TAny *, const TAny *, TBtreePivot &) |
| pure virtual TInt | Compare(const TAny *, const TAny *) |
| virtual IMPORT_C const TAny * | Key(const TAny *) |
Interface for ordering and creating keys for entries in a B-tree.
Derived classes implement this interface for particular types of key.
| void | Between | ( | const TAny * | aLeft, |
| const TAny * | aRight, | |||
| TBtreePivot & | aPivot | |||
| ) | const [pure virtual] | |||
Gets the midpoint between two keys.
The generated midpoint will be greater or equal to aLeft (by a comparison performed by the Compare() function), and less than aRight.
| Parameter | Description |
|---|---|
| aLeft | First key |
| aRight | Second key |
| aPivot | On return, the midpoint between the two keys |