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.
Public Member Functions | |
---|---|
TKeyArrayVar(TInt, TKeyCmpText) | |
TKeyArrayVar(TInt, TKeyCmpText, TInt) | |
TKeyArrayVar(TInt, TKeyCmpNumeric) |
Protected Member Functions | |
---|---|
IMPORT_C TAny * | At(TInt) |
IMPORT_C void | Set(CBufBase *) |
Inherited Functions | |
---|---|
TKey::Compare(TInt,TInt)const | |
TKey::SetPtr(const TAny *) | |
TKey::TKey() | |
TKey::TKey(TInt,TKeyCmpNumeric) | |
TKey::TKey(TInt,TKeyCmpText) | |
TKey::TKey(TInt,TKeyCmpText,TInt) |
Protected Attributes | |
---|---|
CBufBase * | iBase |
Inherited Attributes | |
---|---|
TKey::iCmpType | |
TKey::iKeyLength | |
TKey::iKeyOffset | |
TKey::iPtr |
IMPORT_C | TKeyArrayVar | ( | TInt | anOffset, |
TKeyCmpText | aType | |||
) |
TInt anOffset | |
TKeyCmpText aType |
IMPORT_C | TKeyArrayVar | ( | TInt | anOffset, |
TKeyCmpText | aType, | |||
TInt | aLength | |||
) |
TInt anOffset | |
TKeyCmpText aType | |
TInt aLength |
IMPORT_C | TKeyArrayVar | ( | TInt | anOffset, |
TKeyCmpNumeric | aType | |||
) |
TInt anOffset | |
TKeyCmpNumeric aType |