os/persistentdata/persistentstorage/dbms/inc/D32REC.INL
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 // Copyright (c) 1998-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".
     7 //
     8 // Initial Contributors:
     9 // Nokia Corporation - initial contribution.
    10 //
    11 // Contributors:
    12 //
    13 // Description:
    14 //
    15 
    16 // Class TDbRecordId
    17 inline TDbRecordId::TDbRecordId(TUint32 aValue)
    18 	: iValue(aValue)
    19 	{}
    20 inline TDbRecordId& TDbRecordId::operator=(TUint32 aValue)
    21 	{iValue=aValue;return *this;}
    22 inline TBool TDbRecordId::operator==(TDbRecordId anId) const
    23 	{return iValue==anId.iValue;}
    24 inline TBool TDbRecordId::operator!=(TDbRecordId anId) const
    25 	{return iValue!=anId.iValue;}
    26 inline TUint32 TDbRecordId::Value() const
    27 	{return iValue;}
    28 
    29 // Class CDbRecordBase
    30 inline TBool CDbRecordBase::OpenL()
    31 	{return iFlags&(EOpen|EBroken) ? iFlags&EBroken : DoRestoreL();}
    32 inline void CDbRecordBase::Abandon()
    33 	{iFlags=0;}
    34 inline TBool CDbRecordBase::IsBroken() const
    35 	{return iFlags&EBroken;}
    36 inline void CDbRecordBase::MarkIntact()
    37 	{iFlags=(iFlags&~EBroken)|EOpen;}
    38 
    39 // Class CDbRecordIter
    40 inline CDbRecordBase& CDbRecordIter::Host() const
    41 	{return iHost;}
    42 inline CDbRecordIter::TDeleted CDbRecordIter::DeletedL(TDbPosition aPosition,TDbRecordId aRecordId)
    43 	{return DoDeletedL(aPosition,aRecordId,0);}
    44 inline CDbRecordIter::TDeleted CDbRecordIter::DeletedL(TDbPosition aPosition,TDbRecordId aRecordId,const RDbTableRow& aRow)
    45 	{return DoDeletedL(aPosition,aRecordId,&aRow);}
    46 
    47 // Class CDbBlobSpace
    48 inline TInt CDbBlobSpace::InlineLimit() const
    49 	{return iInlineLimit;}
    50 inline void CDbBlobSpace::SetInlineLimit(TInt anInlineLimit)
    51 	{iInlineLimit=anInlineLimit;}