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()
voidFirst()
const CHeaderFieldPart *operator()()
voidoperator++()
Private Member Functions
voidCheckInvalidation()
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 * aHeaderThe 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()

voidCheckInvalidation()[private, inline]

Check the iterator state for invalidity following deletions in the list

First()

voidFirst()[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++()

voidoperator++()[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