diff -r 000000000000 -r 08ec8eefde2f persistentstorage/store/INC/S32CONT.INL --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/persistentstorage/store/INC/S32CONT.INL Fri Jan 22 11:06:30 2010 +0200 @@ -0,0 +1,177 @@ +// Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies). +// All rights reserved. +// This component and the accompanying materials are made available +// under the terms of "Eclipse Public License v1.0" +// which accompanies this distribution, and is available +// at the URL "http://www.eclipse.org/legal/epl-v10.html". +// +// Initial Contributors: +// Nokia Corporation - initial contribution. +// +// Contributors: +// +// Description: +// + +// Class TPagedSetToken +inline TPagedSetToken::TPagedSetToken(TEmpty) + {Clear();} +inline TInt TPagedSetToken::Count() const + {return iCount;} + +// Class TPagedSetBase +inline TBool TPagedSetBase::IsDirty() const + {return iTree.IsDirty();} +inline void TPagedSetBase::MarkCurrent() + {iTree.MarkCurrent();} +inline void TPagedSetBase::MarkDirty() + {iTree.MarkDirty();} +inline TBool TPagedSetBase::IsBroken() const + {return iTree.IsBroken();} +inline TBool TPagedSetBase::IsIntact() const + {return iTree.IsIntact();} +inline void TPagedSetBase::MarkBroken() + {iTree.MarkBroken();} +inline TInt TPagedSetBase::Count() const + {return iCount;} +inline TBool TPagedSetBase::IsEmpty() const + {return iTree.IsEmpty();} + +// Class TPagedMultisetBase +inline void TPagedMultisetBase::InsertL(const TAny* aPtr) + {TPagedSetBase::InsertAllowDuplicatesL(aPtr);} +inline TPagedMultisetBase::TPagedMultisetBase(TInt anEntrySize) + : TPagedSetBase(anEntrySize) + {} +inline TPagedMultisetBase::TPagedMultisetBase(const TPagedSetToken& aToken,TInt anEntrySize) + : TPagedSetBase(aToken,anEntrySize) + {} + +// Template class TPagedSet +template +inline TPagedSet::TPagedSet() + : TPagedSetBase(sizeof(T)) + {} +template +inline TPagedSet::TPagedSet(const TPagedSetToken& aToken) + : TPagedSetBase(aToken,sizeof(T)) + {} +template +inline TBool TPagedSet::ContainsL(const T& anObject) const + {return TPagedSetBase::ContainsL(&anObject);} +template +inline void TPagedSet::InsertL(const T& anObject) + {TPagedSetBase::InsertL(&anObject);} +template +inline void TPagedSet::DeleteL(const T& anObject) + {TPagedSetBase::DeleteL(&anObject);} +inline TPagedSet::TPagedSet(TInt anEntrySize) + : TPagedSetBase(anEntrySize) + {} +inline TPagedSet::TPagedSet(const TPagedSetToken& aToken,TInt anEntrySize) + : TPagedSetBase(aToken,anEntrySize) + {} + +// Template class TPagedMultiset +template +inline TPagedMultiset::TPagedMultiset() + : TPagedMultisetBase(sizeof(T)) + {} +template +inline TPagedMultiset::TPagedMultiset(const TPagedSetToken& aToken) + : TPagedMultisetBase(aToken,sizeof(T)) + {} +template +inline TBool TPagedMultiset::ContainsL(const T& anObject) const + {return TPagedMultisetBase::ContainsL(&anObject);} +template +inline void TPagedMultiset::InsertL(const T& anObject) + {TPagedMultisetBase::InsertL(&anObject);} +template +inline void TPagedMultiset::DeleteL(const T& anObject) + {TPagedMultisetBase::DeleteL(&anObject);} +inline TPagedMultiset::TPagedMultiset(TInt anEntrySize) + : TPagedMultisetBase(anEntrySize) + {} +inline TPagedMultiset::TPagedMultiset(const TPagedSetToken& aToken,TInt anEntrySize) + : TPagedMultisetBase(aToken,anEntrySize) + {} + +// Class TPagedSetIterBase +inline TPagedSetIterBase::TPagedSetIterBase(const TPagedSetBase& aSet) + : iTree(&aSet.iTree) + {} + +// Class TPagedSetIter +template +inline TPagedSetIter::TPagedSetIter(const TPagedSet& aSet) + : TPagedSetIterBase(aSet) + {} +template +inline TPagedSetIter::TPagedSetIter(const TPagedMultiset& aSet) + : TPagedSetIterBase(aSet) + {} +template +inline T TPagedSetIter::AtL() const + {T t;TPagedSetIterBase::ExtractAtL(&t);return t;} +template +inline void TPagedSetIter::ExtractAtL(T& anObject) const + {TPagedSetIterBase::ExtractAtL(&anObject);} +inline TPagedSetIter::TPagedSetIter(const TPagedSetBase& aSet) + : TPagedSetIterBase(aSet) + {} + +// Class TPagedSetBiIterBase +inline TPagedSetBiIterBase::TPagedSetBiIterBase(const TPagedSetBase& aSet) + : iTree(&aSet.iTree) + {} + +// Class TPagedSetBiIter +template +inline TPagedSetBiIter::TPagedSetBiIter(const TPagedSet& aSet) + : TPagedSetBiIterBase(aSet) + {} +template +inline TPagedSetBiIter::TPagedSetBiIter(const TPagedMultiset& aSet) + : TPagedSetBiIterBase(aSet) + {} +template +inline T TPagedSetBiIter::AtL() const + {T t;TPagedSetBiIterBase::ExtractAtL(&t);return t;} +template +inline void TPagedSetBiIter::ExtractAtL(T& anObject) const + {TPagedSetBiIterBase::ExtractAtL(&anObject);} +inline TPagedSetBiIter::TPagedSetBiIter(const TPagedSetBase& aSet) + : TPagedSetBiIterBase(aSet) + {} + +// Class TPagedSetRIterBase +inline TBool TPagedSetRIterBase::ResetL() + {return iIter.LastL();} +inline TBool TPagedSetRIterBase::NextL() + {return iIter.PreviousL();} +inline void TPagedSetRIterBase::ExtractAtL(TAny* aPtr) const + {iIter.ExtractAtL(aPtr);} +inline TPagedSetRIterBase::TPagedSetRIterBase(const TPagedSetBase& aSet) + : iIter(aSet) + {} + +// Class TPagedSetRIter +template +inline TPagedSetRIter::TPagedSetRIter(const TPagedSet& aSet) + : TPagedSetRIterBase(aSet) + {} +template +inline TPagedSetRIter::TPagedSetRIter(const TPagedMultiset& aSet) + : TPagedSetRIterBase(aSet) + {} +template +inline T TPagedSetRIter::AtL() const + {T t;TPagedSetRIterBase::ExtractAtL(&t);return t;} +template +inline void TPagedSetRIter::ExtractAtL(T& anObject) const + {TPagedSetRIterBase::ExtractAtL(&anObject);} +inline TPagedSetRIter::TPagedSetRIter(const TPagedSetBase& aSet) + : TPagedSetRIterBase(aSet) + {} +