|
||
class MBtreeKey;
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(const TAny *,const TAny *,TBtreePivot &)const
Gets the midpoint between two keys.Compare(const TAny *,const TAny *)const
Orders two keys.Key(const TAny *)const
Gets the key value for an entry.IMPORT_C virtual const TAny* Key(const TAny *anEntry) const;
Gets the key value for an entry.
|
|
virtual TInt Compare(const TAny *aLeft, const TAny *aRight) const=0;
Orders two keys.
|
|
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 MBtreeKey::Compare(const TAny *,const TAny *)const
function), and less than aRight.
|