persistentstorage/dbms/udbms/UD_STD.INL
changeset 0 08ec8eefde2f
equal deleted inserted replaced
-1:000000000000 0:08ec8eefde2f
       
     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 inline TBool IsLong( TDbColType aType )
       
    17 	{ return aType >= EDbColLongText8; }
       
    18 
       
    19 inline TBool IsIntegral( TDbColType aType )
       
    20 	{ return aType <= EDbColInt64; }
       
    21 
       
    22 inline TBool IsSigned(TDbColType aType)
       
    23 	{ __ASSERT( IsIntegral( aType ) ); return aType&1; }
       
    24 
       
    25 inline TBool IsUnsigned( TDbColType aType )
       
    26 	{ return !IsSigned( aType ); }
       
    27 
       
    28 // Class RDbRowSet
       
    29 inline MStreamBuf *RDbRowSet::ColSourceL( TDbColNo aCol ) const
       
    30 	{ return CheckCol( aCol ).ColumnSourceL( aCol ); }
       
    31 
       
    32 inline MStreamBuf *RDbRowSet::ColSinkL( TDbColNo aCol )
       
    33 	{ return CheckCol( aCol ).ColumnSinkL( aCol ); }
       
    34 
       
    35 // class RDbRow
       
    36 inline TBool RDbRow::Owned() const
       
    37 	{ return iColumn & static_cast<TUint>( EOwned ); }
       
    38 
       
    39 inline TInt RDbRow::Column() const
       
    40 	{ return iColumn & ~EOwned; }
       
    41 
       
    42 inline void RDbRow::SetCache( TDbCell* aCell, TInt aColumn )
       
    43 	{ iCell = aCell; iColumn = (iColumn & static_cast<TUint>( EOwned ) ) | aColumn; }
       
    44