sl@0: // Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies).
sl@0: // All rights reserved.
sl@0: // This component and the accompanying materials are made available
sl@0: // under the terms of "Eclipse Public License v1.0"
sl@0: // which accompanies this distribution, and is available
sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html".
sl@0: //
sl@0: // Initial Contributors:
sl@0: // Nokia Corporation - initial contribution.
sl@0: //
sl@0: // Contributors:
sl@0: //
sl@0: // Description:
sl@0: //
sl@0: 
sl@0: #ifndef __ASSERT
sl@0: #define __ASSERT(a)
sl@0: #endif
sl@0: 
sl@0: inline TBool IsLong( TDbColType aType )
sl@0: 	{ return aType >= EDbColLongText8; }
sl@0: 
sl@0: inline TBool IsIntegral( TDbColType aType )
sl@0: 	{ return aType <= EDbColInt64; }
sl@0: 
sl@0: inline TBool IsSigned(TDbColType aType)
sl@0: 	{ __ASSERT( IsIntegral( aType ) ); return aType&1; }
sl@0: 
sl@0: inline TBool IsUnsigned( TDbColType aType )
sl@0: 	{ return !IsSigned( aType ); }
sl@0: 
sl@0: // Class RDbRowSet
sl@0: inline MStreamBuf *RDbRowSet::ColSourceL( TDbColNo aCol ) const
sl@0: 	{ return CheckCol( aCol ).ColumnSourceL( aCol ); }
sl@0: 
sl@0: inline MStreamBuf *RDbRowSet::ColSinkL( TDbColNo aCol )
sl@0: 	{ return CheckCol( aCol ).ColumnSinkL( aCol ); }
sl@0: 
sl@0: // class RDbRow
sl@0: inline TBool RDbRow::Owned() const
sl@0: 	{ return iColumn & static_cast<TUint>( EOwned ); }
sl@0: 
sl@0: inline TInt RDbRow::Column() const
sl@0: 	{ return iColumn & ~EOwned; }
sl@0: 
sl@0: inline void RDbRow::SetCache( TDbCell* aCell, TInt aColumn )
sl@0: 	{ iCell = aCell; iColumn = (iColumn & static_cast<TUint>( EOwned ) ) | aColumn; }
sl@0: