TBtreeFixBase Class Reference

class TBtreeFixBase : public TBtree

Base class for TBtreeFix , which provides a B-tree for fixed sized entries.

Inherits from

Constructor & Destructor Documentation

TBtreeFixBase(TBtreeMode, TInt, TInt)

IMPORT_C TBtreeFixBase ( TBtreeMode aMode,
TInt anEntrySize,
TInt aKeySize
) [protected]

Parameters

TBtreeMode aMode
TInt anEntrySize
TInt aKeySize

TBtreeFixBase(const TBtreeToken &, TBtreeMode, TInt, TInt)

IMPORT_C TBtreeFixBase ( const TBtreeToken & aToken,
TBtreeMode aMode,
TInt anEntrySize,
TInt aKeySize
) [protected]

Parameters

const TBtreeToken & aToken
TBtreeMode aMode
TInt anEntrySize
TInt aKeySize

Member Functions Documentation

Connect(MPagePool *, const MBtreeKey *)

IMPORT_C void Connect ( MPagePool * aPool,
const MBtreeKey * aKey
)

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

ExtractAtL(const TBtreePos &, TAny *)

IMPORT_C void ExtractAtL ( const TBtreePos & aPos,
TAny * anEntry
) const

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 *)

IMPORT_C void ExtractAtL ( const TBtreeMark & aMark,
TAny * anEntry
) const

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.

InsertL(TBtreePos &, const TAny *, TAllowDuplicates)

IMPORT_C TBool InsertL ( TBtreePos & aPos,
const TAny * anEntry,
TAllowDuplicates aDup = ENoDuplicates
)

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 = ENoDuplicates Flag to indicate whether duplicate entries are allowed in the tree

Member Data Documentation

TInt iEntrySize

TInt iEntrySize [private]

TBtreeInlineIndexOrg iIndexOrgFix

TBtreeInlineIndexOrg iIndexOrgFix [private]

TBtreeInlineLeafOrg iLeafOrgFix

TBtreeInlineLeafOrg iLeafOrgFix [private]