#include <mw/tzlocalizationdatatypes.h>
class CTzLocalizedTimeZoneArray : public CTzLocalizedArray< CTzLocalizedTimeZone > |
Public Member Functions | |
---|---|
IMPORT_C void | AppendL(CTzLocalizedTimeZone *) |
IMPORT_C CTzLocalizedTimeZone & | At(TInt) |
IMPORT_C TInt | Count() |
IMPORT_C TInt | Find(CTzLocalizedTimeZone *, TIdentityRelation< CTzLocalizedTimeZone >) |
IMPORT_C CTzLocalizedTimeZoneArray * | NewL() |
IMPORT_C CTzLocalizedTimeZoneArray * | NewLC() |
IMPORT_C void | Remove(TInt) |
void | ReserveL(TInt) |
IMPORT_C void | Sort(TLinearOrder< CTzLocalizedTimeZone >) |
An array of time zones. This just passes function calls on to its templated base class, CTzLocalizedArray.
IMPORT_C void | AppendL | ( | CTzLocalizedTimeZone * | aElement | ) |
Reimplemented from CTzLocalizedArray< CTzLocalizedTimeZone >::AppendL(CTzLocalizedTimeZone *)
Appends a time zone to this array. Ownership of the pointer is transferred to the array.
Parameter | Description |
---|---|
aElement | A pointer to the time zone to add. |
IMPORT_C CTzLocalizedTimeZone & | At | ( | TInt | aIndex | ) | const |
Reimplemented from CTzLocalizedArray< CTzLocalizedTimeZone >::At(TInt)const
Returns the time zone at the specified index.
Parameter | Description |
---|---|
aIndex | The index of the element. |
Returns: A reference to the time zone at aIndex.
IMPORT_C TInt | Count | ( | ) | const |
Reimplemented from CTzLocalizedArray< CTzLocalizedTimeZone >::Count()const
Returns the number of elements in the array.
Returns: The number of elements in the array.
IMPORT_C TInt | Find | ( | CTzLocalizedTimeZone * | anEntry, |
TIdentityRelation< CTzLocalizedTimeZone > | aIdentityRelation | |||
) |
Reimplemented from CTzLocalizedArray< CTzLocalizedTimeZone >::Find(CTzLocalizedTimeZone *,TIdentityRelation< CTzLocalizedTimeZone >)
Searches for a time zone in this array.
Parameter | Description |
---|---|
anEntry | The time zone to search for. |
aIdentityRelation | The search function to use. |
Returns: The index of the first matching object in the array, or KErrNotFound if no match is found.
IMPORT_C CTzLocalizedTimeZoneArray * | NewL | ( | ) | [static] |
Allocates and constructs a new CTzLocalizedTimeZoneArray object.
Returns: The newly created CTzLocalizedTimeZoneArray object.
IMPORT_C CTzLocalizedTimeZoneArray * | NewLC | ( | ) | [static] |
Allocates and constructs a new CTzLocalizedTimeZoneArray object. The pointer to the new object is left on the cleanup stack.
Returns: The newly created CTzLocalizedTimeZoneArray object.
IMPORT_C void | Remove | ( | TInt | aIndex | ) |
Reimplemented from CTzLocalizedArray< CTzLocalizedTimeZone >::Remove(TInt)
Removes the time zone at the specified index.
Parameter | Description |
---|---|
aIndex | The index of the time zone to remove. |
void | ReserveL | ( | TInt | aCount | ) |
Reimplemented from CTzLocalizedArray< CTzLocalizedTimeZone >::ReserveL(TInt)
IMPORT_C void | Sort | ( | TLinearOrder< CTzLocalizedTimeZone > | anOrder | ) |
Reimplemented from CTzLocalizedArray< CTzLocalizedTimeZone >::Sort(TLinearOrder< CTzLocalizedTimeZone >)
Sorts the array.
Parameter | Description |
---|---|
anOrder | The sorting function to use. |