os/persistentdata/persistentstorage/store/INC/S32CONT.INL
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
sl@0
     1
// Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies).
sl@0
     2
// All rights reserved.
sl@0
     3
// This component and the accompanying materials are made available
sl@0
     4
// under the terms of "Eclipse Public License v1.0"
sl@0
     5
// which accompanies this distribution, and is available
sl@0
     6
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
sl@0
     7
//
sl@0
     8
// Initial Contributors:
sl@0
     9
// Nokia Corporation - initial contribution.
sl@0
    10
//
sl@0
    11
// Contributors:
sl@0
    12
//
sl@0
    13
// Description:
sl@0
    14
//
sl@0
    15
sl@0
    16
// Class TPagedSetToken
sl@0
    17
inline TPagedSetToken::TPagedSetToken(TEmpty)
sl@0
    18
	{Clear();}
sl@0
    19
inline TInt TPagedSetToken::Count() const
sl@0
    20
	{return iCount;}
sl@0
    21
sl@0
    22
// Class TPagedSetBase
sl@0
    23
inline TBool TPagedSetBase::IsDirty() const
sl@0
    24
	{return iTree.IsDirty();}
sl@0
    25
inline void TPagedSetBase::MarkCurrent()
sl@0
    26
	{iTree.MarkCurrent();}
sl@0
    27
inline void TPagedSetBase::MarkDirty()
sl@0
    28
	{iTree.MarkDirty();}
sl@0
    29
inline TBool TPagedSetBase::IsBroken() const
sl@0
    30
	{return iTree.IsBroken();}
sl@0
    31
inline TBool TPagedSetBase::IsIntact() const
sl@0
    32
	{return iTree.IsIntact();}
sl@0
    33
inline void TPagedSetBase::MarkBroken()
sl@0
    34
	{iTree.MarkBroken();}
sl@0
    35
inline TInt TPagedSetBase::Count() const
sl@0
    36
	{return iCount;}
sl@0
    37
inline TBool TPagedSetBase::IsEmpty() const
sl@0
    38
	{return iTree.IsEmpty();}
sl@0
    39
sl@0
    40
// Class TPagedMultisetBase
sl@0
    41
inline void TPagedMultisetBase::InsertL(const TAny* aPtr)
sl@0
    42
	{TPagedSetBase::InsertAllowDuplicatesL(aPtr);}
sl@0
    43
inline TPagedMultisetBase::TPagedMultisetBase(TInt anEntrySize)
sl@0
    44
	: TPagedSetBase(anEntrySize)
sl@0
    45
	{}
sl@0
    46
inline TPagedMultisetBase::TPagedMultisetBase(const TPagedSetToken& aToken,TInt anEntrySize)
sl@0
    47
	: TPagedSetBase(aToken,anEntrySize)
sl@0
    48
	{}
sl@0
    49
sl@0
    50
// Template class TPagedSet
sl@0
    51
template <class T>
sl@0
    52
inline TPagedSet<T>::TPagedSet()
sl@0
    53
	: TPagedSetBase(sizeof(T))
sl@0
    54
	{}
sl@0
    55
template <class T>
sl@0
    56
inline TPagedSet<T>::TPagedSet(const TPagedSetToken& aToken)
sl@0
    57
	: TPagedSetBase(aToken,sizeof(T))
sl@0
    58
	{}
sl@0
    59
template <class T>
sl@0
    60
inline TBool TPagedSet<T>::ContainsL(const T& anObject) const
sl@0
    61
	{return TPagedSetBase::ContainsL(&anObject);}
sl@0
    62
template <class T>
sl@0
    63
inline void TPagedSet<T>::InsertL(const T& anObject)
sl@0
    64
	{TPagedSetBase::InsertL(&anObject);}
sl@0
    65
template <class T>
sl@0
    66
inline void TPagedSet<T>::DeleteL(const T& anObject)
sl@0
    67
	{TPagedSetBase::DeleteL(&anObject);}
sl@0
    68
inline TPagedSet<TAny>::TPagedSet(TInt anEntrySize)
sl@0
    69
	: TPagedSetBase(anEntrySize)
sl@0
    70
	{}
sl@0
    71
inline TPagedSet<TAny>::TPagedSet(const TPagedSetToken& aToken,TInt anEntrySize)
sl@0
    72
	: TPagedSetBase(aToken,anEntrySize)
sl@0
    73
	{}
sl@0
    74
sl@0
    75
// Template class TPagedMultiset
sl@0
    76
template <class T>
sl@0
    77
inline TPagedMultiset<T>::TPagedMultiset()
sl@0
    78
	: TPagedMultisetBase(sizeof(T))
sl@0
    79
	{}
sl@0
    80
template <class T>
sl@0
    81
inline TPagedMultiset<T>::TPagedMultiset(const TPagedSetToken& aToken)
sl@0
    82
	: TPagedMultisetBase(aToken,sizeof(T))
sl@0
    83
	{}
sl@0
    84
template <class T>
sl@0
    85
inline TBool TPagedMultiset<T>::ContainsL(const T& anObject) const
sl@0
    86
	{return TPagedMultisetBase::ContainsL(&anObject);}
sl@0
    87
template <class T>
sl@0
    88
inline void TPagedMultiset<T>::InsertL(const T& anObject)
sl@0
    89
	{TPagedMultisetBase::InsertL(&anObject);}
sl@0
    90
template <class T>
sl@0
    91
inline void TPagedMultiset<T>::DeleteL(const T& anObject)
sl@0
    92
	{TPagedMultisetBase::DeleteL(&anObject);}
sl@0
    93
inline TPagedMultiset<TAny>::TPagedMultiset(TInt anEntrySize)
sl@0
    94
	: TPagedMultisetBase(anEntrySize)
sl@0
    95
	{}
sl@0
    96
inline TPagedMultiset<TAny>::TPagedMultiset(const TPagedSetToken& aToken,TInt anEntrySize)
sl@0
    97
	: TPagedMultisetBase(aToken,anEntrySize)
sl@0
    98
	{}
sl@0
    99
sl@0
   100
// Class TPagedSetIterBase
sl@0
   101
inline TPagedSetIterBase::TPagedSetIterBase(const TPagedSetBase& aSet)
sl@0
   102
	: iTree(&aSet.iTree)
sl@0
   103
	{}
sl@0
   104
sl@0
   105
// Class TPagedSetIter
sl@0
   106
template <class T>
sl@0
   107
inline TPagedSetIter<T>::TPagedSetIter(const TPagedSet<T>& aSet)
sl@0
   108
	: TPagedSetIterBase(aSet)
sl@0
   109
	{}
sl@0
   110
template <class T>
sl@0
   111
inline TPagedSetIter<T>::TPagedSetIter(const TPagedMultiset<T>& aSet)
sl@0
   112
	: TPagedSetIterBase(aSet)
sl@0
   113
	{}
sl@0
   114
template <class T>
sl@0
   115
inline T TPagedSetIter<T>::AtL() const
sl@0
   116
	{T t;TPagedSetIterBase::ExtractAtL(&t);return t;}
sl@0
   117
template <class T>
sl@0
   118
inline void TPagedSetIter<T>::ExtractAtL(T& anObject) const
sl@0
   119
	{TPagedSetIterBase::ExtractAtL(&anObject);}
sl@0
   120
inline TPagedSetIter<TAny>::TPagedSetIter(const TPagedSetBase& aSet)
sl@0
   121
	: TPagedSetIterBase(aSet)
sl@0
   122
	{}
sl@0
   123
sl@0
   124
// Class TPagedSetBiIterBase
sl@0
   125
inline TPagedSetBiIterBase::TPagedSetBiIterBase(const TPagedSetBase& aSet)
sl@0
   126
	: iTree(&aSet.iTree)
sl@0
   127
	{}
sl@0
   128
sl@0
   129
// Class TPagedSetBiIter
sl@0
   130
template <class T>
sl@0
   131
inline TPagedSetBiIter<T>::TPagedSetBiIter(const TPagedSet<T>& aSet)
sl@0
   132
	: TPagedSetBiIterBase(aSet)
sl@0
   133
	{}
sl@0
   134
template <class T>
sl@0
   135
inline TPagedSetBiIter<T>::TPagedSetBiIter(const TPagedMultiset<T>& aSet)
sl@0
   136
	: TPagedSetBiIterBase(aSet)
sl@0
   137
	{}
sl@0
   138
template <class T>
sl@0
   139
inline T TPagedSetBiIter<T>::AtL() const
sl@0
   140
	{T t;TPagedSetBiIterBase::ExtractAtL(&t);return t;}
sl@0
   141
template <class T>
sl@0
   142
inline void TPagedSetBiIter<T>::ExtractAtL(T& anObject) const
sl@0
   143
	{TPagedSetBiIterBase::ExtractAtL(&anObject);}
sl@0
   144
inline TPagedSetBiIter<TAny>::TPagedSetBiIter(const TPagedSetBase& aSet)
sl@0
   145
	: TPagedSetBiIterBase(aSet)
sl@0
   146
	{}
sl@0
   147
sl@0
   148
// Class TPagedSetRIterBase
sl@0
   149
inline TBool TPagedSetRIterBase::ResetL()
sl@0
   150
	{return iIter.LastL();}
sl@0
   151
inline TBool TPagedSetRIterBase::NextL()
sl@0
   152
	{return iIter.PreviousL();}
sl@0
   153
inline void TPagedSetRIterBase::ExtractAtL(TAny* aPtr) const
sl@0
   154
	{iIter.ExtractAtL(aPtr);}
sl@0
   155
inline TPagedSetRIterBase::TPagedSetRIterBase(const TPagedSetBase& aSet)
sl@0
   156
	: iIter(aSet)
sl@0
   157
	{}
sl@0
   158
sl@0
   159
// Class TPagedSetRIter
sl@0
   160
template <class T>
sl@0
   161
inline TPagedSetRIter<T>::TPagedSetRIter(const TPagedSet<T>& aSet)
sl@0
   162
	: TPagedSetRIterBase(aSet)
sl@0
   163
	{}
sl@0
   164
template <class T>
sl@0
   165
inline TPagedSetRIter<T>::TPagedSetRIter(const TPagedMultiset<T>& aSet)
sl@0
   166
	: TPagedSetRIterBase(aSet)
sl@0
   167
	{}
sl@0
   168
template <class T>
sl@0
   169
inline T TPagedSetRIter<T>::AtL() const
sl@0
   170
	{T t;TPagedSetRIterBase::ExtractAtL(&t);return t;}
sl@0
   171
template <class T>
sl@0
   172
inline void TPagedSetRIter<T>::ExtractAtL(T& anObject) const
sl@0
   173
	{TPagedSetRIterBase::ExtractAtL(&anObject);}
sl@0
   174
inline TPagedSetRIter<TAny>::TPagedSetRIter(const TPagedSetBase& aSet)
sl@0
   175
	: TPagedSetRIterBase(aSet)
sl@0
   176
	{}
sl@0
   177