TKeyArrayVar Class Reference

class TKeyArrayVar : public TKey

Defines the characteristics of a key used to access the elements of arrays of variable 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 CArrayVarFlat and CArrayVarSeg class hierarchies need a TKeyArrayVar object as an argument to define the location and type of key within an array element.

A TKeyArrayVar object is also 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.

CArrayVarFlat

CArrayVarSeg

CArrayPakFlat

Inherits from

Constructor & Destructor Documentation

TKeyArrayVar(TInt, TKeyCmpText)

IMPORT_CTKeyArrayVar(TIntanOffset,
TKeyCmpTextaType
)

Parameters

TInt anOffset
TKeyCmpText aType

TKeyArrayVar(TInt, TKeyCmpText, TInt)

IMPORT_CTKeyArrayVar(TIntanOffset,
TKeyCmpTextaType,
TIntaLength
)

Parameters

TInt anOffset
TKeyCmpText aType
TInt aLength

TKeyArrayVar(TInt, TKeyCmpNumeric)

IMPORT_CTKeyArrayVar(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

CBufBase * iBase

CBufBase *iBase[protected]