|
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 // U32STD.H |
|
15 // |
|
16 // |
|
17 |
|
18 #ifndef __U32STD_DBMS_H__ |
|
19 #define __U32STD_DBMS_H__ |
|
20 |
|
21 #ifndef __E32STD_H__ |
|
22 #include <e32std.h> |
|
23 #endif |
|
24 #include "D32Assert.h" |
|
25 |
|
26 // MSVC++ up to 5.0 has problems with expanding inline functions |
|
27 // This disables the mad warnings for the whole project |
|
28 #if defined(NDEBUG) && defined(__VC32__) && _MSC_VER<=1100 |
|
29 #pragma warning(disable : 4710) // function not expanded. MSVC 5.0 is stupid |
|
30 #endif |
|
31 |
|
32 // need a const iterator! |
|
33 template <class T> |
|
34 class TSglQueIterC : public TSglQueIterBase |
|
35 /** |
|
36 @internalComponent |
|
37 */ |
|
38 { |
|
39 public: |
|
40 inline TSglQueIterC(const TSglQueBase& aQue); |
|
41 inline operator const T* (); |
|
42 inline const T* operator++(TInt); |
|
43 }; |
|
44 |
|
45 template <class T> |
|
46 inline TSglQueIterC<T>::TSglQueIterC(const TSglQueBase& aQue) |
|
47 : TSglQueIterBase(CONST_CAST(TSglQueBase&,aQue)) |
|
48 {} |
|
49 template <class T> |
|
50 inline TSglQueIterC<T>::operator const T* () |
|
51 {return (const T*)DoCurrent();} |
|
52 template <class T> |
|
53 inline const T* TSglQueIterC<T>::operator++(TInt) |
|
54 {return (const T*)DoPostInc();} |
|
55 |
|
56 #endif |