#include <mw/tzlocalizationdatatypes.h>
class CTzLocalizedCityGroupArray : public CTzLocalizedArray< CTzLocalizedCityGroup > |
Public Member Functions | |
---|---|
IMPORT_C void | AppendL(CTzLocalizedCityGroup *) |
IMPORT_C CTzLocalizedCityGroup & | At(TInt) |
IMPORT_C TInt | Count() |
IMPORT_C TInt | Find(CTzLocalizedCityGroup *, TIdentityRelation< CTzLocalizedCityGroup >) |
IMPORT_C CTzLocalizedCityGroupArray * | NewL() |
IMPORT_C CTzLocalizedCityGroupArray * | NewLC() |
IMPORT_C void | Remove(TInt) |
void | ReserveL(TInt) |
IMPORT_C void | Sort(TLinearOrder< CTzLocalizedCityGroup >) |
An array of city groups. This just passes function calls on to its templated base class, CTzLocalizedArray.
IMPORT_C void | AppendL | ( | CTzLocalizedCityGroup * | aGroup | ) |
Reimplemented from CTzLocalizedArray< CTzLocalizedCityGroup >::AppendL(CTzLocalizedCityGroup *)
Appends a group to this array. Ownership of the pointer is transferred to the array.
Parameter | Description |
---|---|
aGroup | A pointer to the group to add. |
IMPORT_C CTzLocalizedCityGroup & | At | ( | TInt | aIndex | ) | const |
Reimplemented from CTzLocalizedArray< CTzLocalizedCityGroup >::At(TInt)const
Returns the group at the specified index.
Parameter | Description |
---|---|
aIndex | Index of the element to get. |
Returns: Reference to the group at aIndex.
IMPORT_C TInt | Count | ( | ) | const |
Reimplemented from CTzLocalizedArray< CTzLocalizedCityGroup >::Count()const
Returns the number of elements in the array.
Returns: The number of elements in the array.
IMPORT_C TInt | Find | ( | CTzLocalizedCityGroup * | anEntry, |
TIdentityRelation< CTzLocalizedCityGroup > | aIdentityRelation | |||
) |
Reimplemented from CTzLocalizedArray< CTzLocalizedCityGroup >::Find(CTzLocalizedCityGroup *,TIdentityRelation< CTzLocalizedCityGroup >)
Searches for a group in this array.
Parameter | Description |
---|---|
anEntry | The group 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 CTzLocalizedCityGroupArray * | NewL | ( | ) | [static] |
Allocates and constructs a new CTzLocalizedCityGroupArray object.
Returns: The newly created CTzLocalizedCityGroupArray object.
IMPORT_C CTzLocalizedCityGroupArray * | NewLC | ( | ) | [static] |
Allocates and constructs a new CTzLocalizedCityGroupArray object. The pointer to the new object is left on the cleanup stack.
Returns: The newly created CTzLocalizedCityGroupArray object.
IMPORT_C void | Remove | ( | TInt | aIndex | ) |
Reimplemented from CTzLocalizedArray< CTzLocalizedCityGroup >::Remove(TInt)
Removes the group at the specified index.
Parameter | Description |
---|---|
aIndex | Index of the group to remove. |
void | ReserveL | ( | TInt | aCount | ) |
Reimplemented from CTzLocalizedArray< CTzLocalizedCityGroup >::ReserveL(TInt)
IMPORT_C void | Sort | ( | TLinearOrder< CTzLocalizedCityGroup > | anOrder | ) |
Reimplemented from CTzLocalizedArray< CTzLocalizedCityGroup >::Sort(TLinearOrder< CTzLocalizedCityGroup >)
Sorts the array.
Parameter | Description |
---|---|
anOrder | Sorting function to use. |