Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <TzLocalizationDataTypes.h>
Link against: timezonelocalization.lib

Class CTzLocalizedCityArray

class CTzLocalizedCityArray : public CTzLocalizedArray< CTzLocalizedCity >;

Description

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

Derivation

Members

Defined in CTzLocalizedCityArray:

Related Topics


Construction and destruction


NewL()

IMPORT_C static CTzLocalizedCityArray* NewL();

Description

Allocates and constructs a new CTzLocalizedCityArray object.

Return value

CTzLocalizedCityArray *

The newly created CTzLocalizedCityArray object.


NewLC()

IMPORT_C static CTzLocalizedCityArray* NewLC();

Description

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

Return value

CTzLocalizedCityArray *

The newly created CTzLocalizedCityArray object.

[Top]


Member functions


At(TInt)const

IMPORT_C CTzLocalizedCity& At(TInt aIndex) const;

Description

Returns the city at the specified index.

Parameters

TInt aIndex

Index of the element to get.

Return value

CTzLocalizedCity &

Reference to the city at aIndex.


Count()const

IMPORT_C TInt Count() const;

Description

Returns the number of elements in the city array.

Return value

TInt

The number of elements in the array.


AppendL(CTzLocalizedCity *)

IMPORT_C void AppendL(CTzLocalizedCity *aCity);

Description

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

Parameters

CTzLocalizedCity *aCity

Pointer to the city to add.


Remove(TInt)

IMPORT_C void Remove(TInt aIndex);

Description

Removes the city at the specified index.

Parameters

TInt aIndex

The index of the city to remove.


Sort(TLinearOrder< CTzLocalizedCity >)

IMPORT_C void Sort(TLinearOrder< CTzLocalizedCity > anOrder);

Description

Sorts this array.

Parameters

TLinearOrder< CTzLocalizedCity > anOrder

The sorting function to use.


Find(CTzLocalizedCity *,TIdentityRelation< CTzLocalizedCity >)

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

Description

Searches for a city in the array.

Parameters

CTzLocalizedCity *anEntry

The city to search for.

TIdentityRelation< CTzLocalizedCity > aIdentityRelation

The search function to use.

Return value

TInt

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