persistentstorage/dbms/inc/D32REC.INL
author hgs
Tue, 19 Oct 2010 16:26:13 +0100
changeset 55 44f437012c90
parent 0 08ec8eefde2f
permissions -rw-r--r--
201041_01

// 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 TDbRecordId
inline TDbRecordId::TDbRecordId(TUint32 aValue)
	: iValue(aValue)
	{}
inline TDbRecordId& TDbRecordId::operator=(TUint32 aValue)
	{iValue=aValue;return *this;}
inline TBool TDbRecordId::operator==(TDbRecordId anId) const
	{return iValue==anId.iValue;}
inline TBool TDbRecordId::operator!=(TDbRecordId anId) const
	{return iValue!=anId.iValue;}
inline TUint32 TDbRecordId::Value() const
	{return iValue;}

// Class CDbRecordBase
inline TBool CDbRecordBase::OpenL()
	{return iFlags&(EOpen|EBroken) ? iFlags&EBroken : DoRestoreL();}
inline void CDbRecordBase::Abandon()
	{iFlags=0;}
inline TBool CDbRecordBase::IsBroken() const
	{return iFlags&EBroken;}
inline void CDbRecordBase::MarkIntact()
	{iFlags=(iFlags&~EBroken)|EOpen;}

// Class CDbRecordIter
inline CDbRecordBase& CDbRecordIter::Host() const
	{return iHost;}
inline CDbRecordIter::TDeleted CDbRecordIter::DeletedL(TDbPosition aPosition,TDbRecordId aRecordId)
	{return DoDeletedL(aPosition,aRecordId,0);}
inline CDbRecordIter::TDeleted CDbRecordIter::DeletedL(TDbPosition aPosition,TDbRecordId aRecordId,const RDbTableRow& aRow)
	{return DoDeletedL(aPosition,aRecordId,&aRow);}

// Class CDbBlobSpace
inline TInt CDbBlobSpace::InlineLimit() const
	{return iInlineLimit;}
inline void CDbBlobSpace::SetInlineLimit(TInt anInlineLimit)
	{iInlineLimit=anInlineLimit;}