CTzLocalizedCityArray Class Reference

class CTzLocalizedCityArray : public CTzLocalizedArray< CTzLocalizedCity >

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

Inherits from

Member Functions Documentation

AppendL(CTzLocalizedCity *)

IMPORT_C voidAppendL(CTzLocalizedCity *aCity)

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

Parameters

CTzLocalizedCity * aCityPointer to the city to add.

At(TInt)

IMPORT_C CTzLocalizedCity &At(TIntaIndex)const

Returns the city at the specified index.

Parameters

TInt aIndexIndex of the element to get.

Count()

IMPORT_C TIntCount()const

Returns the number of elements in the city array.

Find(CTzLocalizedCity *, TIdentityRelation< CTzLocalizedCity >)

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

Searches for a city in the array.

Parameters

CTzLocalizedCity * anEntryThe city to search for.
TIdentityRelation< CTzLocalizedCity > aIdentityRelationThe search function to use.

NewL()

IMPORT_C CTzLocalizedCityArray *NewL()[static]

Allocates and constructs a new 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.

Remove(TInt)

IMPORT_C voidRemove(TIntaIndex)

Removes the city at the specified index.

Parameters

TInt aIndexThe index of the city to remove.

ReserveL(TInt)

voidReserveL(TIntaCount)

Parameters

TInt aCount

Sort(TLinearOrder< CTzLocalizedCity >)

IMPORT_C voidSort(TLinearOrder< CTzLocalizedCity >anOrder)

Sorts this array.

Parameters

TLinearOrder< CTzLocalizedCity > anOrderThe sorting function to use.