Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <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:

Inherited from TBtree:

Inherited from TBtreeFixBase:


Construction and destruction


TBtreeFix(TBtreeMode)

inline TBtreeFix(TBtreeMode aMode);

Description

Constructor that sets the B-tree mode.

Parameters

TBtreeMode aMode

B-tree operating mode


TBtreeFix(const TBtreeToken &,TBtreeMode)

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(TBtreePos &,const Key &,TFind)const

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

Description

Parameters

TBtreePos &aPos

const Key &aKey

TBtree::TFind aMode

Return value

TBool


InsertL(TBtreePos &,const Entry &,TAllowDuplicates)

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(const Key &)

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(const TBtreePos &)const

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(const TBtreeMark &)const

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(const TBtreePos &,Entry &)const

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(const TBtreeMark &,Entry &)const

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