Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <TzLocalizationDataTypes.h>
Link against: timezonelocalization.lib

Class CTzLocalizedCityGroupArray

class CTzLocalizedCityGroupArray : public CTzLocalizedArray< CTzLocalizedCityGroup >;

Description

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

Derivation

Members

Defined in CTzLocalizedCityGroupArray:

Related Topics


Construction and destruction


NewL()

IMPORT_C static CTzLocalizedCityGroupArray* NewL();

Description

Allocates and constructs a new CTzLocalizedCityGroupArray object.

Return value

CTzLocalizedCityGroupArray *

The newly created CTzLocalizedCityGroupArray object.


NewLC()

IMPORT_C static CTzLocalizedCityGroupArray* NewLC();

Description

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

Return value

CTzLocalizedCityGroupArray *

The newly created CTzLocalizedCityGroupArray object.

[Top]


Member functions


At(TInt)const

IMPORT_C CTzLocalizedCityGroup& At(TInt aIndex) const;

Description

Returns the group at the specified index.

Parameters

TInt aIndex

Index of the element to get.

Return value

CTzLocalizedCityGroup &

Reference to the group at aIndex.


Count()const

IMPORT_C TInt Count() const;

Description

Returns the number of elements in the array.

Return value

TInt

The number of elements in the array.


AppendL(CTzLocalizedCityGroup *)

IMPORT_C void AppendL(CTzLocalizedCityGroup *aGroup);

Description

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.


Remove(TInt)

IMPORT_C void Remove(TInt aIndex);

Description

Removes the group at the specified index.

Parameters

TInt aIndex

Index of the group to remove.


Sort(TLinearOrder< CTzLocalizedCityGroup >)

IMPORT_C void Sort(TLinearOrder< CTzLocalizedCityGroup > anOrder);

Description

Sorts the array.

Parameters

TLinearOrder< CTzLocalizedCityGroup > anOrder

Sorting function to use.


Find(CTzLocalizedCityGroup *,TIdentityRelation< CTzLocalizedCityGroup >)

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

Description

Searches for a group in this array.

Parameters

CTzLocalizedCityGroup *anEntry

The group to search for.

TIdentityRelation< CTzLocalizedCityGroup > aIdentityRelation

The search function to use.

Return value

TInt

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