THeaderFieldParamIter Class Reference

class THeaderFieldParamIter

Iterator class to iterate the parameters contained within a header part. Requires friendship with CHeaderFieldPart and as such is tightly bound to that class.

Public Member Functions
THeaderFieldParamIter(const CHeaderFieldPart *)
~THeaderFieldParamIter()
TBool AtEnd()
voidFirst()
const CHeaderFieldParam *operator()()
voidoperator++()
Private Member Functions
voidCheckInvalidation()
Private Attributes
const CHeaderFieldPart *iHeaderPart
TInt iPosIdx

Constructor & Destructor Documentation

THeaderFieldParamIter(const CHeaderFieldPart *)

THeaderFieldParamIter(const CHeaderFieldPart *aHeaderPart)[inline]

Construct an iterator for the parameterss of the supplied header part.

Parameters

const CHeaderFieldPart * aHeaderPartThe header part whose parameters we want to iterate

~THeaderFieldParamIter()

~THeaderFieldParamIter()[inline]

Class destructor

d'tor

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]

Reset iterator to point at the first part of the header

Reset the iterator to point at the first element

operator()()

const CHeaderFieldParam *operator()()[inline]

Obtain the header parameter 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 CHeaderFieldPart * iHeaderPart

const CHeaderFieldPart *iHeaderPart[private]

The header part whose parameters we are iterating.

TInt iPosIdx

TInt iPosIdx[private]

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