|
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 #ifndef __ASSERT |
|
17 #define __ASSERT(a) |
|
18 #endif |
|
19 |
|
20 inline TBool IsLong( TDbColType aType ) |
|
21 { return aType >= EDbColLongText8; } |
|
22 |
|
23 inline TBool IsIntegral( TDbColType aType ) |
|
24 { return aType <= EDbColInt64; } |
|
25 |
|
26 inline TBool IsSigned(TDbColType aType) |
|
27 { __ASSERT( IsIntegral( aType ) ); return aType&1; } |
|
28 |
|
29 inline TBool IsUnsigned( TDbColType aType ) |
|
30 { return !IsSigned( aType ); } |
|
31 |
|
32 // Class RDbRowSet |
|
33 inline MStreamBuf *RDbRowSet::ColSourceL( TDbColNo aCol ) const |
|
34 { return CheckCol( aCol ).ColumnSourceL( aCol ); } |
|
35 |
|
36 inline MStreamBuf *RDbRowSet::ColSinkL( TDbColNo aCol ) |
|
37 { return CheckCol( aCol ).ColumnSinkL( aCol ); } |
|
38 |
|
39 // class RDbRow |
|
40 inline TBool RDbRow::Owned() const |
|
41 { return iColumn & static_cast<TUint>( EOwned ); } |
|
42 |
|
43 inline TInt RDbRow::Column() const |
|
44 { return iColumn & ~EOwned; } |
|
45 |
|
46 inline void RDbRow::SetCache( TDbCell* aCell, TInt aColumn ) |
|
47 { iCell = aCell; iColumn = (iColumn & static_cast<TUint>( EOwned ) ) | aColumn; } |
|
48 |