commsfwutils/commsbufs/inc/commsbufq.inl
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:
       
    14 //
       
    15 
       
    16 inline RCommsBufQ::RCommsBufQ()
       
    17 /**
       
    18 The constructor
       
    19 */
       
    20 	{ iNext = NULL; iLast = NULL; }
       
    21 
       
    22 inline RCommsBufQ::RCommsBufQ(RCommsBuf* aFirst, RCommsBuf* aLast)	
       
    23 /**
       
    24 The constructor
       
    25 */ 
       
    26 	{
       
    27 	iNext = aFirst; iLast = aLast;
       
    28 	}
       
    29 
       
    30 
       
    31 inline TBool RCommsBufQ::IsEmpty()
       
    32 /**
       
    33 Check if the queue is empty
       
    34 
       
    35   @return ETrue if empty otherwise EFalse
       
    36 */
       
    37 	{
       
    38 	return iNext==NULL;
       
    39 	}
       
    40 
       
    41 inline RCommsBuf* RCommsBufQ::First()
       
    42 /**
       
    43 Returns the first RCommsBuf from the queue
       
    44 */
       
    45 	{
       
    46 	return iNext;
       
    47 	}
       
    48 
       
    49 inline RCommsBuf* RCommsBufQ::Last()
       
    50 /**
       
    51 Returns the last RCommsBuf from the queue
       
    52 */
       
    53 	{
       
    54 	return iLast;
       
    55 	}
       
    56