Location:
tzlocalizationdatatypes.h
Link against: timezonelocalization.lib
class CTzLocalizedCityArray : public CTzLocalizedArray< CTzLocalizedCity >;
Description
An array of cities. This just passes function calls on to its templated base class, CTzLocalizedArray
.
Derivation
CTzLocalizedArray< CTzLocalizedCity >
- No description.
CTzLocalizedCityArray
- An array of cities
Members
Defined in CTzLocalizedCityArray
:
AppendL()
, At()
, Count()
, Find()
, NewL()
, NewLC()
, Remove()
, Sort()
See also
static IMPORT_C CTzLocalizedCityArray *NewL();
Description
Allocates and constructs a new CTzLocalizedCityArray object.
Return value
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
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
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.
|
|
IMPORT_C void AppendL(CTzLocalizedCity *aCity);
Description
Appends a city to this array. Ownership of the pointer is transferred to the array.
Parameters
IMPORT_C void Remove(TInt aIndex);
Description
Removes the city at the specified index.
Parameters
TInt aIndex |
The index of the city to remove.
|
|
IMPORT_C void Sort(TLinearOrder< CTzLocalizedCity > anOrder);
Description
Sorts this array.
Parameters
IMPORT_C TInt Find(CTzLocalizedCity *anEntry, TIdentityRelation< CTzLocalizedCity > aIdentityRelation);
Description
Searches for a city in the array.
Parameters
Return value
TInt
|
The index of the first matching object in the array, or KErrNotFound if no match is found.
|
|