CTzLocalizedCityGroupArray Class Reference

class CTzLocalizedCityGroupArray : public CTzLocalizedArray< CTzLocalizedCityGroup >

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

Inherits from

Member Functions Documentation

AppendL(CTzLocalizedCityGroup *)

IMPORT_C voidAppendL(CTzLocalizedCityGroup *aGroup)

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

Parameters

CTzLocalizedCityGroup * aGroupA pointer to the group to add.

At(TInt)

IMPORT_C CTzLocalizedCityGroup &At(TIntaIndex)const

Returns the group at the specified index.

Parameters

TInt aIndexIndex of the element to get.

Count()

IMPORT_C TIntCount()const

Returns the number of elements in the array.

Find(CTzLocalizedCityGroup *, TIdentityRelation< CTzLocalizedCityGroup >)

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

Searches for a group in this array.

Parameters

CTzLocalizedCityGroup * anEntryThe group to search for.
TIdentityRelation< CTzLocalizedCityGroup > aIdentityRelationThe search function to use.

NewL()

IMPORT_C CTzLocalizedCityGroupArray *NewL()[static]

Allocates and constructs a new 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.

Remove(TInt)

IMPORT_C voidRemove(TIntaIndex)

Removes the group at the specified index.

Parameters

TInt aIndexIndex of the group to remove.

ReserveL(TInt)

voidReserveL(TIntaCount)

Parameters

TInt aCount

Sort(TLinearOrder< CTzLocalizedCityGroup >)

IMPORT_C voidSort(TLinearOrder< CTzLocalizedCityGroup >anOrder)

Sorts the array.

Parameters

TLinearOrder< CTzLocalizedCityGroup > anOrderSorting function to use.