Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

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



Location: e32base.h
Link against: euser.lib

Class TKeyArrayFix

TKeyArrayFix

Support

Supported from 5.0

Description

Defines the characteristics of a key used to access the elements of arrays of fixed length objects.

An object of this type can represent three categories of key, depending on the constructor used:

The Sort(), InsertIsqL(), Find() and FindIsqL() member functions of the CArrayFixFlat and CArrayFixSeg class hierarchies need a TKeyArrayFix object as an argument to define the location and type of key within an array element.

Derivation

TKeyDefines the characteristics of a key used to access the elements of an array
TKeyArrayFixDefines the characteristics of a key used to access the elements of arrays of fixed length objects

Defined in TKeyArrayFix:
TKeyArrayFix()

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

See also:


Construction


TKeyArrayFix()

TKeyArrayFix(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:


TKeyArrayFix()

TKeyArrayFix(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:


TKeyArrayFix()

TKeyArrayFix(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: