TKeyArrayFix Class Reference

class TKeyArrayFix : public TKey

Defines the characteristics of a key used to access the elements of arrays of fixed length objects.

An object of this type can represent three categories of key, depending on the constructor used:

1. a descriptor key

2. a text key

3. a numeric key.

The Sort(), InsertIsqL(), Find() and FindIsqL() member functions of the CArrayFixFlat and CArrayFixSeg class hierarchies need a TKeyArrayFix object as an argument to define the location and type of key within an array element.

CArrayFixFlat

CArrayFixSeg

Inherits from

Constructor & Destructor Documentation

TKeyArrayFix(TInt, TKeyCmpText)

IMPORT_CTKeyArrayFix(TIntanOffset,
TKeyCmpTextaType
)

Parameters

TInt anOffset
TKeyCmpText aType

TKeyArrayFix(TInt, TKeyCmpText, TInt)

IMPORT_CTKeyArrayFix(TIntanOffset,
TKeyCmpTextaType,
TIntaLength
)

Parameters

TInt anOffset
TKeyCmpText aType
TInt aLength

TKeyArrayFix(TInt, TKeyCmpNumeric)

IMPORT_CTKeyArrayFix(TIntanOffset,
TKeyCmpNumericaType
)

Parameters

TInt anOffset
TKeyCmpNumeric aType

Member Functions Documentation

At(TInt)

IMPORT_C TAny *At(TIntanIndex)const [protected, virtual]

Parameters

TInt anIndex

Set(CBufBase *, TInt)

IMPORT_C voidSet(CBufBase *aBase,
TIntaRecordLength
)[protected, virtual]

Parameters

CBufBase * aBase
TInt aRecordLength

Member Data Documentation

CBufBase * iBase

CBufBase *iBase[protected]

TInt iRecordLength

TInt iRecordLength[protected]