commsfwutils/commsbufs/inc/commsbufiter.h
changeset 0 dfb7c4ff071f
equal deleted inserted replaced
-1:000000000000 0:dfb7c4ff071f
       
     1 // Copyright (c) 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: Comms buf iterator
       
    14 //
       
    15 
       
    16 #ifndef __COMMSBUFITER_H__
       
    17 #define __COMMSBUFITER_H__
       
    18 
       
    19 #include <comms-infras/commsbuf.h>
       
    20 class TCommsBufIter
       
    21 /**
       
    22 Iterator to iterate the RCommsBuf within a chain
       
    23 
       
    24 @publishedPartner
       
    25 @prototype
       
    26 */
       
    27 	{
       
    28 	friend class RCommsBufChain;
       
    29 	friend class TMBufIter;
       
    30 
       
    31 	public:
       
    32 	inline TCommsBufIter(RCommsBufChain& aChain);
       
    33 	
       
    34 	inline TCommsBufIter operator++ (TInt);
       
    35 	inline TCommsBufIter& operator++ ();
       
    36 	inline RCommsBuf* Current();
       
    37 	inline TBool AtEnd() const;
       
    38 
       
    39 	private:
       
    40 	inline TCommsBufIter();
       
    41 	inline TCommsBufIter(RCommsBuf* aBuf);
       
    42 	RCommsBuf* iCurrent;
       
    43 	};
       
    44 
       
    45 #include <comms-infras/commsbufiter.inl>
       
    46 #endif