Location:
s32btree.h
Link against: estor.lib
MBtreeKey
Supported from 5.0
Interface for ordering and creating keys for entries in a B-tree.
Derived classes implement this interface for particular types of key.
Defined in MBtreeKey
:
Between()
, Compare()
, Key()
virtual void Between(const TAny* aLeft,const TAny* aRight,TBtreePivot& aPivot) const=0;
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
.
|
virtual TInt Compare(const TAny* aLeft,const TAny* aRight) const=0;
Orders two keys.
|
|
virtual const TAny* Key(const TAny* anEntry) const;
Gets the key value for an entry.
|
|