CTzLocalizedCityArray Class Reference

#include <mw/tzlocalizationdatatypes.h>

Link against: timezonelocalization.lib

class CTzLocalizedCityArray : public CTzLocalizedArray< CTzLocalizedCity >

Inherits from

Detailed Description

An array of cities. This just passes function calls on to its templated base class, CTzLocalizedArray.

Member Function Documentation

AppendL ( CTzLocalizedCity * )

IMPORT_C voidAppendL(CTzLocalizedCity *aCity)

Reimplemented from CTzLocalizedArray< CTzLocalizedCity >::AppendL(CTzLocalizedCity *)

Appends a city to this array. Ownership of the pointer is transferred to the array.

ParameterDescription
aCityPointer to the city to add.

At ( TInt )

IMPORT_C CTzLocalizedCity &At(TIntaIndex)const

Reimplemented from CTzLocalizedArray< CTzLocalizedCity >::At(TInt)const

Returns the city at the specified index.

ParameterDescription
aIndexIndex of the element to get.

Returns: Reference to the city at aIndex.

Count ( )

IMPORT_C TIntCount()const

Reimplemented from CTzLocalizedArray< CTzLocalizedCity >::Count()const

Returns the number of elements in the city array.

Returns: The number of elements in the array.

Find ( CTzLocalizedCity *, TIdentityRelation< CTzLocalizedCity > )

IMPORT_C TIntFind(CTzLocalizedCity *anEntry,
TIdentityRelation< CTzLocalizedCity >aIdentityRelation
)

Reimplemented from CTzLocalizedArray< CTzLocalizedCity >::Find(CTzLocalizedCity *,TIdentityRelation< CTzLocalizedCity >)

Searches for a city in the array.

ParameterDescription
anEntryThe city to search for.
aIdentityRelationThe search function to use.

Returns: The index of the first matching object in the array, or KErrNotFound if no match is found.

NewL ( )

IMPORT_C CTzLocalizedCityArray *NewL()[static]

Allocates and constructs a new CTzLocalizedCityArray object.

Returns: The newly created CTzLocalizedCityArray object.

NewLC ( )

IMPORT_C CTzLocalizedCityArray *NewLC()[static]

Allocates and constructs a new CTzLocalizedCityArray object. The pointer to the new object is left on the cleanup stack.

Returns: The newly created CTzLocalizedCityArray object.

Remove ( TInt )

IMPORT_C voidRemove(TIntaIndex)

Reimplemented from CTzLocalizedArray< CTzLocalizedCity >::Remove(TInt)

Removes the city at the specified index.

ParameterDescription
aIndexThe index of the city to remove.

ReserveL ( TInt )

voidReserveL(TIntaCount)

Reimplemented from CTzLocalizedArray< CTzLocalizedCity >::ReserveL(TInt)

Sort ( TLinearOrder< CTzLocalizedCity > )

IMPORT_C voidSort(TLinearOrder< CTzLocalizedCity >anOrder)

Sorts this array.

ParameterDescription
anOrderThe sorting function to use.