TMBufPktQIter Class Reference

class TMBufPktQIter

MBUF PACKET QUEUE ITERATOR

Public Member Functions
TMBufPktQIter(RMBufPktQ &)
const RMBufChain &Current()
IMPORT_C voidInsert(RMBufChain &)
TBool More()
IMPORT_C voidRemove(RMBufChain &)
voidSet(RMBufPktQ &)
voidSetToFirst()
IMPORT_C voidTidyAfterUpdate()
IMPORT_C const RMBufChain &operator++(TInt)
Protected Attributes
RMBufChain iCurrent
RMBufChain iPrev
RMBufPktQ *iQueue

Constructor & Destructor Documentation

TMBufPktQIter(RMBufPktQ &)

TMBufPktQIter(RMBufPktQ &aQueue)[inline]

Constructor

Parameters

RMBufPktQ & aQueue

Member Functions Documentation

Current()

const RMBufChain &Current()const [inline]

Returns the element in the current position

Insert(RMBufChain &)

IMPORT_C voidInsert(RMBufChain &aNewChain)

Inserts a chain into the queue to the part after current position

Parameters

RMBufChain & aNewChainthe chain to be inserted

More()

TBool More()const [inline]

Checks if there is more in the queue

Remove(RMBufChain &)

IMPORT_C voidRemove(RMBufChain &aNewChain)

Removes the part after the current position

Parameters

RMBufChain & aNewChainthe resulted removed queue

Set(RMBufPktQ &)

voidSet(RMBufPktQ &aQueue)[inline]

Iterates to a a position of an element in the queue

Parameters

RMBufPktQ & aQueuethe elemet to iterate to

SetToFirst()

voidSetToFirst()[inline]

Sets to first position

TidyAfterUpdate()

IMPORT_C voidTidyAfterUpdate()

Update the current position, after update if the current position becomes empty after update - the current position will be the first in the queue, else the next in the queue

operator++(TInt)

IMPORT_C const RMBufChain &operator++(TInt)

Operator ++ move to the next position in the queue

Parameters

TInt

Member Data Documentation

RMBufChain iCurrent

RMBufChain iCurrent[protected]

RMBufChain iPrev

RMBufChain iPrev[protected]

RMBufPktQ * iQueue

RMBufPktQ *iQueue[protected]