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