CTzLocalizedTimeZoneArray Class Reference

class CTzLocalizedTimeZoneArray : public CTzLocalizedArray< CTzLocalizedTimeZone >

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

Inherits from

Member Functions Documentation

AppendL(CTzLocalizedTimeZone *)

IMPORT_C void AppendL ( CTzLocalizedTimeZone * aElement )

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

Parameters

CTzLocalizedTimeZone * aElement A pointer to the time zone to add.

At(TInt)

IMPORT_C CTzLocalizedTimeZone & At ( TInt aIndex ) const

Returns the time zone at the specified index.

Parameters

TInt aIndex The index of the element.

Count()

IMPORT_C TInt Count ( ) const

Returns the number of elements in the array.

Find(CTzLocalizedTimeZone *, TIdentityRelation< CTzLocalizedTimeZone >)

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

Searches for a time zone in this array.

Parameters

CTzLocalizedTimeZone * anEntry The time zone to search for.
TIdentityRelation < CTzLocalizedTimeZone > aIdentityRelation The search function to use.

NewL()

IMPORT_C CTzLocalizedTimeZoneArray * NewL ( ) [static]

Allocates and constructs a new CTzLocalizedTimeZoneArray object.

NewLC()

IMPORT_C CTzLocalizedTimeZoneArray * NewLC ( ) [static]

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

Remove(TInt)

IMPORT_C void Remove ( TInt aIndex )

Removes the time zone at the specified index.

Parameters

TInt aIndex The index of the time zone to remove.

ReserveL(TInt)

void ReserveL ( TInt aCount )

Parameters

TInt aCount

Sort(TLinearOrder< CTzLocalizedTimeZone >)

IMPORT_C void Sort ( TLinearOrder < CTzLocalizedTimeZone > anOrder )

Sorts the array.

Parameters

TLinearOrder < CTzLocalizedTimeZone > anOrder The sorting function to use.