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 void AppendL ( CTzLocalizedCityGroup * aGroup )

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

Parameters

CTzLocalizedCityGroup * aGroup A pointer to the group to add.

At(TInt)

IMPORT_C CTzLocalizedCityGroup & At ( TInt aIndex ) const

Returns the group at the specified index.

Parameters

TInt aIndex Index of the element to get.

Count()

IMPORT_C TInt Count ( ) const

Returns the number of elements in the array.

Find(CTzLocalizedCityGroup *, TIdentityRelation< CTzLocalizedCityGroup >)

IMPORT_C TInt Find ( CTzLocalizedCityGroup * anEntry,
TIdentityRelation < CTzLocalizedCityGroup > aIdentityRelation
)

Searches for a group in this array.

Parameters

CTzLocalizedCityGroup * anEntry The group to search for.
TIdentityRelation < CTzLocalizedCityGroup > aIdentityRelation The 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 void Remove ( TInt aIndex )

Removes the group at the specified index.

Parameters

TInt aIndex Index of the group to remove.

ReserveL(TInt)

void ReserveL ( TInt aCount )

Parameters

TInt aCount

Sort(TLinearOrder< CTzLocalizedCityGroup >)

IMPORT_C void Sort ( TLinearOrder < CTzLocalizedCityGroup > anOrder )

Sorts the array.

Parameters

TLinearOrder < CTzLocalizedCityGroup > anOrder Sorting function to use.