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 void AppendL ( CTzLocalizedCity * aCity )

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

Parameters

CTzLocalizedCity * aCity Pointer to the city to add.

At(TInt)

IMPORT_C CTzLocalizedCity & At ( TInt aIndex ) const

Returns the city at the specified index.

Parameters

TInt aIndex Index of the element to get.

Count()

IMPORT_C TInt Count ( ) const

Returns the number of elements in the city array.

Find(CTzLocalizedCity *, TIdentityRelation< CTzLocalizedCity >)

IMPORT_C TInt Find ( CTzLocalizedCity * anEntry,
TIdentityRelation < CTzLocalizedCity > aIdentityRelation
)

Searches for a city in the array.

Parameters

CTzLocalizedCity * anEntry The city to search for.
TIdentityRelation < CTzLocalizedCity > aIdentityRelation The 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 void Remove ( TInt aIndex )

Removes the city at the specified index.

Parameters

TInt aIndex The index of the city to remove.

ReserveL(TInt)

void ReserveL ( TInt aCount )

Parameters

TInt aCount

Sort(TLinearOrder< CTzLocalizedCity >)

IMPORT_C void Sort ( TLinearOrder < CTzLocalizedCity > anOrder )

Sorts this array.

Parameters

TLinearOrder < CTzLocalizedCity > anOrder The sorting function to use.