commsfwutils/commsbufs/version1/mbufmgr/INC/MBufQ.inl
changeset 0 dfb7c4ff071f
equal deleted inserted replaced
-1:000000000000 0:dfb7c4ff071f
       
     1 // Copyright (c) 1997-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 //    Buffer Manager for Protocols
       
    15 
       
    16 #if !defined(__MBufQ_inl__)
       
    17 #define __MBufQ_inl__
       
    18 
       
    19 //
       
    20 // MBUF QUEUE
       
    21 //
       
    22 
       
    23 /**
       
    24 Constructor
       
    25 */
       
    26 inline RMBufQ::RMBufQ()
       
    27 	{ Init(); }
       
    28 
       
    29 /**
       
    30 Check if the queue is empty
       
    31 @return True if Empty
       
    32 */
       
    33 inline TBool RMBufQ::IsEmpty()
       
    34 	{ return iNext==NULL; }
       
    35 
       
    36 /**
       
    37 Returns the first in the queue
       
    38 @return the first in the queue
       
    39 */
       
    40 
       
    41 inline RMBuf* RMBufQ::First()
       
    42 	{ return iNext; }
       
    43 
       
    44 /**
       
    45 Returns the last in the queue
       
    46 @return The last in the queue
       
    47 */
       
    48 inline RMBuf* RMBufQ::Last()
       
    49 	{ return iLast; }
       
    50 
       
    51 /**
       
    52 Constructor
       
    53 */
       
    54 inline RMBufQ::RMBufQ(RMBuf* aFirst, RMBuf* aLast)
       
    55 	{ iNext = aFirst; iLast = aLast; }
       
    56 
       
    57 #endif //__MBufQ_inl__