1 // Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
16 #ifndef __TZLOCAL_DATATYPES_INL__
17 #define __TZLOCAL_DATATYPES_INL__
19 //==================================================================
20 // TTzLocalizedId inline Functions
21 //==================================================================
23 Returns the time zone ID.
24 @return The time zone ID.
26 inline TUint16 TTzLocalizedId::TimeZoneId() const
32 Returns the resource ID.
33 @return The resource ID.
35 inline TUint TTzLocalizedId::ResourceId() const
40 //==================================================================
41 // CTzLocalizedArray's inline functions
42 //==================================================================
48 inline CTzLocalizedArray<T>::~CTzLocalizedArray()
50 iArray.ResetAndDestroy();
58 inline CTzLocalizedArray<T>::CTzLocalizedArray()
62 Returns the element at the specified index.
63 @param aIndex Index of the element to get.
64 @return The element at aIndex.
68 inline T& CTzLocalizedArray<T>::At(TInt aIndex) const
70 return *(iArray[aIndex]);
74 Returns the number of elements in the array.
75 @return The number of elements in the array.
79 inline TInt CTzLocalizedArray<T>::Count() const
81 return iArray.Count();
85 Appends aElement to this array.
86 @param aElement The element to add.
90 inline void CTzLocalizedArray<T>::AppendL(T* aElement)
92 iArray.AppendL(aElement);
96 Removes the element at the specified index.
97 @param aIndex The index of the element to remove.
101 inline void CTzLocalizedArray<T>::Remove(TInt aIndex)
103 iArray.Remove(aIndex);
108 @param aOrder The sorting function to use.
112 inline void CTzLocalizedArray<T>::Sort(TLinearOrder<T> aOrder)
118 Finds an element in this array.
119 @param aIdentityRelation finding function to use.
123 inline TInt CTzLocalizedArray<T>::Find(T* aEntry,TIdentityRelation<T> aIdentityRelation)
125 return iArray.Find(aEntry,aIdentityRelation);
129 inline void CTzLocalizedArray<T>::ReserveL(TInt aCount)
131 iArray.ReserveL(aCount);
134 #endif //__TZLOCAL_DATATYPES_INL__