TPositionQualityBase Class Reference

class TPositionQualityBase : public TPositionClassTypeBase

The base class for classes used to store position quality information

Inherits from

Constructor & Destructor Documentation

TPositionQualityBase()

IMPORT_CTPositionQualityBase()[protected]

Default constructor for TPositionQualityBase

Member Functions Documentation

Compare(const TPositionQualityBase &, TInt, TPositionQualityItem::TResult &)

IMPORT_C TIntCompare(const TPositionQualityBase &aPositionQuality,
TIntaElementToCompare,
TPositionQualityItem::TResult &aComparison
)const

Compares a specified element of another TPositionQualityBase object to this TPositionQualityBase.

Parameters

const TPositionQualityBase & aPositionQualityThe position quality to compare against this position quality.
TInt aElementToCompareThe element number that we want to compare.
TPositionQualityItem::TResult & aComparisonSet by this function to whether or not the TPositionQualityBase provided is better or worse than this TPositionQualityBase.

DoGetElement(TInt, TPositionQualityItem::TDataType, TAny *, TUint)

IMPORT_C TIntDoGetElement(TIntaElementId,
TPositionQualityItem::TDataTypeaDataType,
TAny *aData,
TUintaSizeOfData
)const [private]

Gets the data of an element from the array of elements.

Parameters

TInt aElementIdThe element Id of that we're interested in.
TPositionQualityItem::TDataType aDataTypeThe datatype of the data to be fetched.
TAny * aDataA pointer to the data to be written into.
TUint aSizeOfDataThe size of the data object to be copied.

DoSetElement(TInt, TPositionQualityItem::TDataType, TPositionQualityItem::TValuePreference, const TAny *, TUint)

IMPORT_C voidDoSetElement(TIntaElementId,
TPositionQualityItem::TDataTypeaDataType,
TPositionQualityItem::TValuePreferenceaValuePreference,
const TAny *aData,
TUintaSizeOfData
)[private]

Sets the data for an element in the element array.

Parameters

TInt aElementIdThe element Id of that we're interested in.
TPositionQualityItem::TDataType aDataTypeThe datatype of the data to be set in the array.
TPositionQualityItem::TValuePreference aValuePreferenceWhether greater or lower values indicate 'better'.
const TAny * aDataA pointer to the data to be read from.
TUint aSizeOfDataThe size of the data object to be copied.

GetElement(TInt, TPositionQualityItem::TDataType, T &)

TInt GetElement(TIntaElementId,
TPositionQualityItem::TDataTypeaDataType,
T &aData
)const [protected, inline]

Gets the data of an element from the array of elements.

Parameters

TInt aElementIdThe element Id of that we're interested in.
TPositionQualityItem::TDataType aDataTypeThe datatype of the data to be fetched.
T & aDataA pointer to the data to be written into.

HighWaterMark()

IMPORT_C TIntHighWaterMark()const

Returns The High Water Mark

IsDefined(TInt)

IMPORT_C TBoolIsDefined(TIntaElementId)const

Returns whether an element is defined Whether or not this element has a defined state

Parameters

TInt aElementIdThe element Id of that we're interested in.

ResetElement(TInt)

IMPORT_C voidResetElement(TIntaElementId)[protected]

Resets element

Parameters

TInt aElementIdThe id of the element to be reset to a state of EUndefined. Maintains the iHighWaterMark.

SetElement(TInt, TPositionQualityItem::TDataType, TPositionQualityItem::TValuePreference, T)

voidSetElement(TIntaElementId,
TPositionQualityItem::TDataTypeaDataType,
TPositionQualityItem::TValuePreferenceaValuePreference,
TaData
)[protected, inline]

Sets the data of an element from the array of elements.

Parameters

TInt aElementIdThe element Id of that we're interested in.
TPositionQualityItem::TDataType aDataTypeThe datatype of the data to be fetched.
TPositionQualityItem::TValuePreference aValuePreferenceQuality preferences
T aDataA pointer to the data to be written into.

Member Data Documentation

TInt iHighwaterMark

TInt iHighwaterMark[private]

Internal highwater mark

TFixedArray< TPositionQualityItem, KPositionMaxSectionFields > iPositionQualityData

TFixedArray< TPositionQualityItem, KPositionMaxSectionFields >iPositionQualityData[private]

Internal array