Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



Location: S32BTREE.H

Class TBtreeFix

class TBtreeFix : public TBtreeFixBase;

Description

A B-tree for fixed-sized keys and entries.

Entry is the type of entry to store. Key defines how items should be ordered: there must be a member of this type in the Entry class.

Derivation

Members

Defined in TBtreeFix:
AtL(), AtL(), DeleteL(), ExtractAtL(), ExtractAtL(), FindL(), InsertL(), TBtreeFix(), TBtreeFix()

Inherited from TBtree:
ClearL(), DeleteAtL(), EEqualTo, EGreaterEqual, EGreaterThan, ELessEqual, ELessThan, FirstL(), IsBroken(), IsDirty(), IsEmpty(), IsIntact(), LastL(), MarkBroken(), MarkCurrent(), MarkDirty(), NextL(), PreviousL(), RepairL(), ResetL(), Set(), TFind, Token()

Inherited from TBtreeFixBase:
Connect()


Construction and destruction


TBtreeFix()

inline TBtreeFix(TBtreeMode aMode);

Description

Constructor that sets the B-tree mode.

Parameters

TBtreeMode aMode

B-tree operating mode


TBtreeFix()

inline TBtreeFix(const TBtreeToken &aToken, TBtreeMode aMode);

Description

Constructor that sets the B-tree mode and initialisation parameters.

Parameters

const TBtreeToken &aToken

Parameters with which to initialise the B-tree

TBtreeMode aMode

B-tree operating mode

[Top]


Member functions


FindL()

inline TBool FindL(TBtreePos &aPos, const Key &aKey, TFind aMode=EEqualTo) const;

Description

Parameters

TBtreePos &aPos

const Key &aKey

TFind aMode

Return value

TBool


InsertL()

inline TBool InsertL(TBtreePos &aPos, const Entry &anEntry, TAllowDuplicates aDup=ENoDuplicates);

Description

Inserts an entry into the tree.

Parameters

TBtreePos &aPos

On return, the position of the entry inserted

const Entry &anEntry

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


DeleteL()

inline TBool DeleteL(const Key &aKey);

Description

Delete an entry.

Parameters

const Key &aKey

Key of the entry to delete

Return value

TBool

True if successful, false if the entry was not found


AtL()

inline Entry AtL(const TBtreePos &aPos) const;

Description

Gets the entry at the specified position.

Parameters

const TBtreePos &aPos

Position of the entry to get

Return value

Entry

Entry at position aPos


AtL()

inline Entry AtL(const TBtreeMark &aMark) const;

Description

Gets the entry at the specified iterator position.

Parameters

const TBtreeMark &aMark

Iterator to use to get the entry

Return value

Entry

Entry at current iterator position


ExtractAtL()

inline void ExtractAtL(const TBtreePos &aPos, Entry &anEntry) const;

Description

Gets the entry at the specified position.

Parameters

const TBtreePos &aPos

Position of the entry to get

Entry &anEntry

On return, the specified entry


ExtractAtL()

inline void ExtractAtL(const TBtreeMark &aMark, Entry &anEntry) const;

Description

Gets the entry at the specified iterator position.

Parameters

const TBtreeMark &aMark

Iterator to use to get the entry

Entry &anEntry

On return, the specified entry