CTzLocalizedCityGroupArray Class Reference

#include <mw/tzlocalizationdatatypes.h>

Link against: timezonelocalization.lib

class CTzLocalizedCityGroupArray : public CTzLocalizedArray< CTzLocalizedCityGroup >

Inherits from

Detailed Description

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

Member Function Documentation

AppendL ( CTzLocalizedCityGroup * )

IMPORT_C voidAppendL(CTzLocalizedCityGroup *aGroup)

Reimplemented from CTzLocalizedArray< CTzLocalizedCityGroup >::AppendL(CTzLocalizedCityGroup *)

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

ParameterDescription
aGroupA pointer to the group to add.

At ( TInt )

IMPORT_C CTzLocalizedCityGroup &At(TIntaIndex)const

Reimplemented from CTzLocalizedArray< CTzLocalizedCityGroup >::At(TInt)const

Returns the group at the specified index.

ParameterDescription
aIndexIndex of the element to get.

Returns: Reference to the group at aIndex.

Count ( )

IMPORT_C TIntCount()const

Reimplemented from CTzLocalizedArray< CTzLocalizedCityGroup >::Count()const

Returns the number of elements in the array.

Returns: The number of elements in the array.

Find ( CTzLocalizedCityGroup *, TIdentityRelation< CTzLocalizedCityGroup > )

IMPORT_C TIntFind(CTzLocalizedCityGroup *anEntry,
TIdentityRelation< CTzLocalizedCityGroup >aIdentityRelation
)

Reimplemented from CTzLocalizedArray< CTzLocalizedCityGroup >::Find(CTzLocalizedCityGroup *,TIdentityRelation< CTzLocalizedCityGroup >)

Searches for a group in this array.

ParameterDescription
anEntryThe group to search for.
aIdentityRelationThe search function to use.

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

NewL ( )

IMPORT_C CTzLocalizedCityGroupArray *NewL()[static]

Allocates and constructs a new CTzLocalizedCityGroupArray object.

Returns: The newly created CTzLocalizedCityGroupArray object.

NewLC ( )

IMPORT_C CTzLocalizedCityGroupArray *NewLC()[static]

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

Returns: The newly created CTzLocalizedCityGroupArray object.

Remove ( TInt )

IMPORT_C voidRemove(TIntaIndex)

Reimplemented from CTzLocalizedArray< CTzLocalizedCityGroup >::Remove(TInt)

Removes the group at the specified index.

ParameterDescription
aIndexIndex of the group to remove.

ReserveL ( TInt )

voidReserveL(TIntaCount)

Reimplemented from CTzLocalizedArray< CTzLocalizedCityGroup >::ReserveL(TInt)

Sort ( TLinearOrder< CTzLocalizedCityGroup > )

IMPORT_C voidSort(TLinearOrder< CTzLocalizedCityGroup >anOrder)

Sorts the array.

ParameterDescription
anOrderSorting function to use.