Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

[Index] [Glossary] [Previous] [Next]



Location: e32base.h
Link against: euser.lib

Class TKeyArrayPak

TKeyArrayPak

Support

Supported from 5.0

Description

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:

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.

Derivation

TKeyDefines the characteristics of a key used to access the elements of an array
TKeyArrayPakDefines the characteristics of a key used to access the elements of packed arrays

Defined in TKeyArrayPak:
TKeyArrayPak()

Inherited from TKey:
At(), Compare(), SetPtr()

See also:


Construction


TKeyArrayPak()

TKeyArrayPak(TInt anOffset,TKeyCmpText aType);

Description

Constructs the characteristics of a descriptor key.

No length value is passed as this is taken from the descriptor type key.

Parameters

TInt anOffset

The offset of the key from the start of an array element.

TKeyCmpText aType

An enumeration which defines the type of comparison to be made between two descriptor keys.

See also:


TKeyArrayPak()

TKeyArrayPak(TInt anOffset,TKeyCmpText aType,TInt aLength);

Description

Constructs the characteristics of a text key.

Parameters

TInt anOffset

The offset of the key from the start of an array element.

TKeyCmpText aType

An enumeration which defines the type of comparison to be made between two text keys.

TInt aLength

The length of the text key.

See also:


TKeyArrayPak()

TKeyArrayPak(TInt anOffset,TKeyCmpNumeric aType);

Description

Constructs the characteristics of a numeric key.

Parameters

TInt anOffset

The offset of the key from the start of an array element.

TKeyCmpNumeric aType

An enumeration which defines the type of the numeric key.

See also: