#include <S32BTREE.H>
Link against:
estor.lib
class TBtreeFixBase : public TBtree;
Description
Base class for TBtreeFix
, which provides a B-tree for fixed sized entries.
Derivation
TBtreeFixBase
-
Base class for TBtreeFix, which provides a B-tree for fixed sized entries.
Members
Defined in TBtreeFixBase
:
Connect(MPagePool *,const MBtreeKey *)
Initalises the B-tree with a page pool and key handler.
ExtractAtL(const TBtreeMark &,TAny *)const
Gets the entry at the specified iterator position.
ExtractAtL(const TBtreePos &,TAny *)const
Gets the entry at the specified position.
InsertL(TBtreePos &,const TAny *,TAllowDuplicates)
Inserts an entry into the tree.
TBtreeFixBase(TBtreeMode,TInt,TInt)
TBtreeFixBase(const TBtreeToken &,TBtreeMode,TInt,TInt)
Inherited from TBtree
:
ClearL()
Resets the B-tree to have zero-height, and a null root, and deletes all index pa...
Connect(MPagePool *,const MBtreeKey *,const MBtreeLeafOrg *,const MBtreeIndexOrg *)
DeleteAtL(TBtreePos &)
Deletes the entry at the specified position
DeleteL(const TAny *)
Deletes an entry.
EEqualTo
Find the first entry equal to the search target.
EGreaterEqual
Find the first entry greater than or equal to the search target.
EGreaterThan
Find the first entry greater than the search target.
ELessEqual
Find the last entry less than or equal to the search target.
ELessThan
Find the last entry less than the search target.
ExtractAtL(const TBtreeMark &,TAny *,TInt)const
Gets an entry at specified iterator position.
ExtractAtL(const TBtreePos &,TAny *,TInt)const
Gets the entry at the specified position.
FindL(TBtreePos &,const TAny *,TFind)const
Searches for an entry and returns its position.
FirstL(TBtreePos &)const
Goes to the first entry in the B-tree.
InsertL(TBtreePos &,const TAny *,TInt,TAllowDuplicates)
Inserts an entry into the tree.
IsBroken()const
Tests if the broken flag has been set on the B-tree.
IsDirty()const
Tests if the dirty flag has been set on the B-tree.
IsEmpty()const
Tests if the B-tree is empty.
IsIntact()const
Tests if the broken flag has not been set on the B-tree .
LastL(TBtreePos &)const
Goes to the last entry in the B-tree.
MarkBroken()
Sets the broken flag.
MarkCurrent()
Clears the dirty flag.
MarkDirty()
Sets the dirty flag.
NextL(TBtreeMark &)const
Advances an iterator to the next entry.
NextL(TBtreePos &)const
Gets the position of the entry following the specified entry.
PreviousL(TBtreePos &)const
Gets the position of the entry preceding the specified entry.
RepairL()
Attempts to repair a broken B-tree.
ResetL(TBtreeMark &)const
Resets an iterator to the root of the tree.
Set(const TBtreeToken &,TBtreeMode)
Initialises the B-tree.
TBtree(TBtreeMode)
Constructor that sets the B-tree mode.
TBtree(const TBtreeToken &,TBtreeMode)
Constructor that sets the B-tree mode and initialisation parameters.
TFind
Sets the condition for a successful match when calling TBtree::Find().
Token()const
Gets an object that encapsulates the TBtree settings.
Construction and destruction
TBtreeFixBase(TBtreeMode,TInt,TInt)
protected: IMPORT_C TBtreeFixBase(TBtreeMode aMode, TInt anEntrySize, TInt aKeySize);
Description
Parameters
TBtreeMode aMode |
|
TInt anEntrySize |
|
TInt aKeySize |
|
|
TBtreeFixBase(const TBtreeToken &,TBtreeMode,TInt,TInt)
protected: IMPORT_C TBtreeFixBase(const TBtreeToken &aToken, TBtreeMode aMode, TInt anEntrySize, TInt aKeySize);
Description
Parameters
Connect(MPagePool *,const MBtreeKey *)
IMPORT_C void Connect(MPagePool *aPool, const MBtreeKey *aKey);
Description
Initalises the B-tree with a page pool and key handler.
Parameters
MPagePool *aPool |
Page pool to provide storage for the B-tree
|
const MBtreeKey *aKey |
Key handler for the B-tree
|
|
InsertL(TBtreePos &,const TAny *,TAllowDuplicates)
IMPORT_C TBool InsertL(TBtreePos &aPos, const TAny *anEntry, TAllowDuplicates aDup=ENoDuplicates);
Description
Inserts an entry into the tree.
Parameters
TBtreePos &aPos |
On return, the position of the entry inserted
|
const TAny *anEntry |
Pointer to the entry to insert
|
TAllowDuplicates aDup |
Flag to indicate whether duplicate entries are allowed in the tree
|
|
Return value
TBool
|
True if successful, false if the entry was a duplicate and aDup was set to ENoDuplicates
|
|
ExtractAtL(const TBtreePos &,TAny *)const
IMPORT_C void ExtractAtL(const TBtreePos &aPos, TAny *anEntry) const;
Description
Gets the entry at the specified position.
Parameters
const TBtreePos &aPos |
Position of the entry to get
|
TAny *anEntry |
Buffer into which to copy the entry.
|
|
ExtractAtL(const TBtreeMark &,TAny *)const
IMPORT_C void ExtractAtL(const TBtreeMark &aMark, TAny *anEntry) const;
Description
Gets the entry at the specified iterator position.
Parameters
const TBtreeMark &aMark |
Position of the entry to get
|
TAny *anEntry |
Buffer into which to copy the entry.
|
|