Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



Location: 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:
AppendL(), At(), Count(), Find(), NewL(), NewLC(), Remove(), Sort()

See also


Construction and destruction


NewL()

static IMPORT_C CTzLocalizedCityArray *NewL();

Description

Allocates and constructs a new CTzLocalizedCityArray object.

Return value

CTzLocalizedCityArray *

The newly created CTzLocalizedCityArray object.


NewLC()

static IMPORT_C 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()

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()

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()

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()

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()

IMPORT_C void Sort(TLinearOrder< CTzLocalizedCity > anOrder);

Description

Sorts this array.

Parameters

TLinearOrder< CTzLocalizedCity > anOrder

The sorting function to use.


Find()

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.