TKeyArrayPak Class Reference

class TKeyArrayPak : public TKeyArrayVar

Defines the characteristics of a key used to access the elements of packed arrays.

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 InsertIsqL(), Find() and FindIsqL() member functions of the CArrayPakFlat class hierarchy need a TKeyArrayPak object as an argument to define the location and type of key within an array element.

Note that a TKeyArrayVar object is required for sorting a packed array. The implementation of the SortL() member function of the CArrayPakFlat class constructs a temporary CArrayVarFlat object which requires the TKeyArrayVar object.

CArrayVarSeg

CArrayPakFlat

TKeyArrayVar

Inherits from

Constructor & Destructor Documentation

TKeyArrayPak(TInt, TKeyCmpText)

IMPORT_CTKeyArrayPak(TIntanOffset,
TKeyCmpTextaType
)

Parameters

TInt anOffset
TKeyCmpText aType

TKeyArrayPak(TInt, TKeyCmpText, TInt)

IMPORT_CTKeyArrayPak(TIntanOffset,
TKeyCmpTextaType,
TIntaLength
)

Parameters

TInt anOffset
TKeyCmpText aType
TInt aLength

TKeyArrayPak(TInt, TKeyCmpNumeric)

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

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

Parameters

CBufBase * aBase

Member Data Documentation

TInt iCacheIndex

TInt iCacheIndex[private]

TInt iCacheOffset

TInt iCacheOffset[private]