THeaderFieldPartIter Class Reference

class THeaderFieldPartIter

Iterator class to iterate the parts contained within a header field. Requires friendship with CHeaderField and as such is tightly bound to that class.

Public Member Functions
THeaderFieldPartIter (const CHeaderField *)
TBool AtEnd ()
void First ()
const CHeaderFieldPart * operator() ()
void operator++ ()
Private Member Functions
void CheckInvalidation ()
Private Attributes
const CHeaderField * iHeader
TInt iPosIdx

Constructor & Destructor Documentation

THeaderFieldPartIter(const CHeaderField *)

THeaderFieldPartIter ( const CHeaderField * aHeader ) [inline]

Construct an iterator for the parts of the supplied header.

Parameters

const CHeaderField * aHeader The header whose parts we want to iterate

Member Functions Documentation

AtEnd()

TBool AtEnd ( ) [inline]

Check if the iterator is at the end of the list. If so, further calls to operator() will return NULL. Check if the iterator is at the end of the list it traverses

CheckInvalidation()

void CheckInvalidation ( ) [private, inline]

Check the iterator state for invalidity following deletions in the list

First()

void First ( ) [inline]

Class destructor Reset iterator to point at the first part of the header

d'tor Reset the iterator to point at the first element

operator()()

const CHeaderFieldPart * operator() ( ) [inline]

Obtain the header part currently pointed at by the iterator. Obtain the element at the iterator's current position

operator++()

void operator++ ( ) [inline]

Advance the iterator.

Advance the iterator

Member Data Documentation

const CHeaderField * iHeader

const CHeaderField * iHeader [private]

The header whose parts we are iterating.

TInt iPosIdx

TInt iPosIdx [private]

The index of the part in the header that is currently pointed at by the iterator