#include <mw/tzlocalizationdatatypes.h>
| class CTzLocalizedCityArray : public CTzLocalizedArray< CTzLocalizedCity > |
| Public Member Functions | |
|---|---|
| IMPORT_C void | AppendL(CTzLocalizedCity *) |
| IMPORT_C CTzLocalizedCity & | At(TInt) |
| IMPORT_C TInt | Count() |
| IMPORT_C TInt | Find(CTzLocalizedCity *, TIdentityRelation< CTzLocalizedCity >) |
| IMPORT_C CTzLocalizedCityArray * | NewL() |
| IMPORT_C CTzLocalizedCityArray * | NewLC() |
| IMPORT_C void | Remove(TInt) |
| void | ReserveL(TInt) |
| IMPORT_C void | Sort(TLinearOrder< CTzLocalizedCity >) |
An array of cities. This just passes function calls on to its templated base class, CTzLocalizedArray.
| IMPORT_C void | AppendL | ( | CTzLocalizedCity * | aCity | ) |
Reimplemented from CTzLocalizedArray< CTzLocalizedCity >::AppendL(CTzLocalizedCity *)
Appends a city to this array. Ownership of the pointer is transferred to the array.
| Parameter | Description |
|---|---|
| aCity | Pointer to the city to add. |
| IMPORT_C CTzLocalizedCity & | At | ( | TInt | aIndex | ) | const |
Reimplemented from CTzLocalizedArray< CTzLocalizedCity >::At(TInt)const
Returns the city at the specified index.
| Parameter | Description |
|---|---|
| aIndex | Index of the element to get. |
Returns: Reference to the city at aIndex.
| IMPORT_C TInt | Count | ( | ) | const |
Reimplemented from CTzLocalizedArray< CTzLocalizedCity >::Count()const
Returns the number of elements in the city array.
Returns: The number of elements in the array.
| IMPORT_C TInt | Find | ( | CTzLocalizedCity * | anEntry, |
| TIdentityRelation< CTzLocalizedCity > | aIdentityRelation | |||
| ) | ||||
Reimplemented from CTzLocalizedArray< CTzLocalizedCity >::Find(CTzLocalizedCity *,TIdentityRelation< CTzLocalizedCity >)
Searches for a city in the array.
| Parameter | Description |
|---|---|
| anEntry | The city to search for. |
| aIdentityRelation | The search function to use. |
Returns: The index of the first matching object in the array, or KErrNotFound if no match is found.
| IMPORT_C CTzLocalizedCityArray * | NewL | ( | ) | [static] |
Allocates and constructs a new CTzLocalizedCityArray object.
Returns: The newly created CTzLocalizedCityArray object.
| 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.
| IMPORT_C void | Remove | ( | TInt | aIndex | ) |
Reimplemented from CTzLocalizedArray< CTzLocalizedCity >::Remove(TInt)
Removes the city at the specified index.
| Parameter | Description |
|---|---|
| aIndex | The index of the city to remove. |
| void | ReserveL | ( | TInt | aCount | ) |
Reimplemented from CTzLocalizedArray< CTzLocalizedCity >::ReserveL(TInt)
| IMPORT_C void | Sort | ( | TLinearOrder< CTzLocalizedCity > | anOrder | ) |
Sorts this array.
| Parameter | Description |
|---|---|
| anOrder | The sorting function to use. |