epoc32/include/s32cont.inl
branchSymbian2
changeset 2 2fe1408b6811
parent 0 061f57f2323e
child 4 837f303aceeb
     1.1 --- a/epoc32/include/s32cont.inl	Tue Nov 24 13:55:44 2009 +0000
     1.2 +++ b/epoc32/include/s32cont.inl	Tue Mar 16 16:12:26 2010 +0000
     1.3 @@ -1,1 +1,176 @@
     1.4 -s32cont.inl
     1.5 +// Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.6 +// All rights reserved.
     1.7 +// This component and the accompanying materials are made available
     1.8 +// under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
     1.9 +// which accompanies this distribution, and is available
    1.10 +// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
    1.11 +//
    1.12 +// Initial Contributors:
    1.13 +// Nokia Corporation - initial contribution.
    1.14 +//
    1.15 +// Contributors:
    1.16 +//
    1.17 +// Description:
    1.18 +//
    1.19 +
    1.20 +// Class TPagedSetToken
    1.21 +inline TPagedSetToken::TPagedSetToken(TEmpty)
    1.22 +	{Clear();}
    1.23 +inline TInt TPagedSetToken::Count() const
    1.24 +	{return iCount;}
    1.25 +
    1.26 +// Class TPagedSetBase
    1.27 +inline TBool TPagedSetBase::IsDirty() const
    1.28 +	{return iTree.IsDirty();}
    1.29 +inline void TPagedSetBase::MarkCurrent()
    1.30 +	{iTree.MarkCurrent();}
    1.31 +inline void TPagedSetBase::MarkDirty()
    1.32 +	{iTree.MarkDirty();}
    1.33 +inline TBool TPagedSetBase::IsBroken() const
    1.34 +	{return iTree.IsBroken();}
    1.35 +inline TBool TPagedSetBase::IsIntact() const
    1.36 +	{return iTree.IsIntact();}
    1.37 +inline void TPagedSetBase::MarkBroken()
    1.38 +	{iTree.MarkBroken();}
    1.39 +inline TInt TPagedSetBase::Count() const
    1.40 +	{return iCount;}
    1.41 +inline TBool TPagedSetBase::IsEmpty() const
    1.42 +	{return iTree.IsEmpty();}
    1.43 +
    1.44 +// Class TPagedMultisetBase
    1.45 +inline void TPagedMultisetBase::InsertL(const TAny* aPtr)
    1.46 +	{TPagedSetBase::InsertAllowDuplicatesL(aPtr);}
    1.47 +inline TPagedMultisetBase::TPagedMultisetBase(TInt anEntrySize)
    1.48 +	: TPagedSetBase(anEntrySize)
    1.49 +	{}
    1.50 +inline TPagedMultisetBase::TPagedMultisetBase(const TPagedSetToken& aToken,TInt anEntrySize)
    1.51 +	: TPagedSetBase(aToken,anEntrySize)
    1.52 +	{}
    1.53 +
    1.54 +// Template class TPagedSet
    1.55 +template <class T>
    1.56 +inline TPagedSet<T>::TPagedSet()
    1.57 +	: TPagedSetBase(sizeof(T))
    1.58 +	{}
    1.59 +template <class T>
    1.60 +inline TPagedSet<T>::TPagedSet(const TPagedSetToken& aToken)
    1.61 +	: TPagedSetBase(aToken,sizeof(T))
    1.62 +	{}
    1.63 +template <class T>
    1.64 +inline TBool TPagedSet<T>::ContainsL(const T& anObject) const
    1.65 +	{return TPagedSetBase::ContainsL(&anObject);}
    1.66 +template <class T>
    1.67 +inline void TPagedSet<T>::InsertL(const T& anObject)
    1.68 +	{TPagedSetBase::InsertL(&anObject);}
    1.69 +template <class T>
    1.70 +inline void TPagedSet<T>::DeleteL(const T& anObject)
    1.71 +	{TPagedSetBase::DeleteL(&anObject);}
    1.72 +inline TPagedSet<TAny>::TPagedSet(TInt anEntrySize)
    1.73 +	: TPagedSetBase(anEntrySize)
    1.74 +	{}
    1.75 +inline TPagedSet<TAny>::TPagedSet(const TPagedSetToken& aToken,TInt anEntrySize)
    1.76 +	: TPagedSetBase(aToken,anEntrySize)
    1.77 +	{}
    1.78 +
    1.79 +// Template class TPagedMultiset
    1.80 +template <class T>
    1.81 +inline TPagedMultiset<T>::TPagedMultiset()
    1.82 +	: TPagedMultisetBase(sizeof(T))
    1.83 +	{}
    1.84 +template <class T>
    1.85 +inline TPagedMultiset<T>::TPagedMultiset(const TPagedSetToken& aToken)
    1.86 +	: TPagedMultisetBase(aToken,sizeof(T))
    1.87 +	{}
    1.88 +template <class T>
    1.89 +inline TBool TPagedMultiset<T>::ContainsL(const T& anObject) const
    1.90 +	{return TPagedMultisetBase::ContainsL(&anObject);}
    1.91 +template <class T>
    1.92 +inline void TPagedMultiset<T>::InsertL(const T& anObject)
    1.93 +	{TPagedMultisetBase::InsertL(&anObject);}
    1.94 +template <class T>
    1.95 +inline void TPagedMultiset<T>::DeleteL(const T& anObject)
    1.96 +	{TPagedMultisetBase::DeleteL(&anObject);}
    1.97 +inline TPagedMultiset<TAny>::TPagedMultiset(TInt anEntrySize)
    1.98 +	: TPagedMultisetBase(anEntrySize)
    1.99 +	{}
   1.100 +inline TPagedMultiset<TAny>::TPagedMultiset(const TPagedSetToken& aToken,TInt anEntrySize)
   1.101 +	: TPagedMultisetBase(aToken,anEntrySize)
   1.102 +	{}
   1.103 +
   1.104 +// Class TPagedSetIterBase
   1.105 +inline TPagedSetIterBase::TPagedSetIterBase(const TPagedSetBase& aSet)
   1.106 +	: iTree(&aSet.iTree)
   1.107 +	{}
   1.108 +
   1.109 +// Class TPagedSetIter
   1.110 +template <class T>
   1.111 +inline TPagedSetIter<T>::TPagedSetIter(const TPagedSet<T>& aSet)
   1.112 +	: TPagedSetIterBase(aSet)
   1.113 +	{}
   1.114 +template <class T>
   1.115 +inline TPagedSetIter<T>::TPagedSetIter(const TPagedMultiset<T>& aSet)
   1.116 +	: TPagedSetIterBase(aSet)
   1.117 +	{}
   1.118 +template <class T>
   1.119 +inline T TPagedSetIter<T>::AtL() const
   1.120 +	{T t;TPagedSetIterBase::ExtractAtL(&t);return t;}
   1.121 +template <class T>
   1.122 +inline void TPagedSetIter<T>::ExtractAtL(T& anObject) const
   1.123 +	{TPagedSetIterBase::ExtractAtL(&anObject);}
   1.124 +inline TPagedSetIter<TAny>::TPagedSetIter(const TPagedSetBase& aSet)
   1.125 +	: TPagedSetIterBase(aSet)
   1.126 +	{}
   1.127 +
   1.128 +// Class TPagedSetBiIterBase
   1.129 +inline TPagedSetBiIterBase::TPagedSetBiIterBase(const TPagedSetBase& aSet)
   1.130 +	: iTree(&aSet.iTree)
   1.131 +	{}
   1.132 +
   1.133 +// Class TPagedSetBiIter
   1.134 +template <class T>
   1.135 +inline TPagedSetBiIter<T>::TPagedSetBiIter(const TPagedSet<T>& aSet)
   1.136 +	: TPagedSetBiIterBase(aSet)
   1.137 +	{}
   1.138 +template <class T>
   1.139 +inline TPagedSetBiIter<T>::TPagedSetBiIter(const TPagedMultiset<T>& aSet)
   1.140 +	: TPagedSetBiIterBase(aSet)
   1.141 +	{}
   1.142 +template <class T>
   1.143 +inline T TPagedSetBiIter<T>::AtL() const
   1.144 +	{T t;TPagedSetBiIterBase::ExtractAtL(&t);return t;}
   1.145 +template <class T>
   1.146 +inline void TPagedSetBiIter<T>::ExtractAtL(T& anObject) const
   1.147 +	{TPagedSetBiIterBase::ExtractAtL(&anObject);}
   1.148 +inline TPagedSetBiIter<TAny>::TPagedSetBiIter(const TPagedSetBase& aSet)
   1.149 +	: TPagedSetBiIterBase(aSet)
   1.150 +	{}
   1.151 +
   1.152 +// Class TPagedSetRIterBase
   1.153 +inline TBool TPagedSetRIterBase::ResetL()
   1.154 +	{return iIter.LastL();}
   1.155 +inline TBool TPagedSetRIterBase::NextL()
   1.156 +	{return iIter.PreviousL();}
   1.157 +inline void TPagedSetRIterBase::ExtractAtL(TAny* aPtr) const
   1.158 +	{iIter.ExtractAtL(aPtr);}
   1.159 +inline TPagedSetRIterBase::TPagedSetRIterBase(const TPagedSetBase& aSet)
   1.160 +	: iIter(aSet)
   1.161 +	{}
   1.162 +
   1.163 +// Class TPagedSetRIter
   1.164 +template <class T>
   1.165 +inline TPagedSetRIter<T>::TPagedSetRIter(const TPagedSet<T>& aSet)
   1.166 +	: TPagedSetRIterBase(aSet)
   1.167 +	{}
   1.168 +template <class T>
   1.169 +inline TPagedSetRIter<T>::TPagedSetRIter(const TPagedMultiset<T>& aSet)
   1.170 +	: TPagedSetRIterBase(aSet)
   1.171 +	{}
   1.172 +template <class T>
   1.173 +inline T TPagedSetRIter<T>::AtL() const
   1.174 +	{T t;TPagedSetRIterBase::ExtractAtL(&t);return t;}
   1.175 +template <class T>
   1.176 +inline void TPagedSetRIter<T>::ExtractAtL(T& anObject) const
   1.177 +	{TPagedSetRIterBase::ExtractAtL(&anObject);}
   1.178 +inline TPagedSetRIter<TAny>::TPagedSetRIter(const TPagedSetBase& aSet)
   1.179 +	: TPagedSetRIterBase(aSet)
   1.180 +	{}