Location:
e32base.h
Link against: euser.lib
TKeyArrayVar
Supported from 5.0
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:
a descriptor key
a text key
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.
|
Defined in TKeyArrayVar:
TKeyArrayVar()
Inherited from TKey:
At(),
Compare(),
SetPtr()
TKeyArrayVar(TInt anOffset,TKeyCmpText aType);
Constructs the characteristics of a descriptor key.
No length value is passed as this is taken from the descriptor type key.
|
TKeyArrayVar(TInt anOffset,TKeyCmpText aType,TInt aLength);
Constructs the characteristics of a text key.
|
TKeyArrayVar(TInt anOffset,TKeyCmpNumeric aType);
Constructs the characteristics of a numeric key.
|