THTTPHdrFieldIter Class Reference

class THTTPHdrFieldIter

Iterator class to iterate the fields within a RHTTPHeaders.

Public Member Functions
THTTPHdrFieldIter(const CHeaders *)
~THTTPHdrFieldIter()
IMPORT_C TBoolAtEnd()
IMPORT_C voidFirst()
IMPORT_C RStringTokenFoperator()()
IMPORT_C voidoperator++()
Private Member Functions
voidCheckInvalidation()
Private Attributes
const CHeaders *iHeaders
TInt iPosIdx

Constructor & Destructor Documentation

THTTPHdrFieldIter(const CHeaders *)

THTTPHdrFieldIter(const CHeaders *aHeaders)[inline]

Construct an iterator for the fields of the supplied header collection.

Parameters

const CHeaders * aHeadersThe header collection whose fields we want to iterate

~THTTPHdrFieldIter()

IMPORT_C~THTTPHdrFieldIter()

Class destructor

Member Functions Documentation

AtEnd()

IMPORT_C TBoolAtEnd()const

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

CheckInvalidation()

voidCheckInvalidation()[private]

Check the iterator state for invalidity following deletions in the collection

First()

IMPORT_C voidFirst()

Reset iterator to point at the first field in the header collection

operator()()

IMPORT_C RStringTokenFoperator()()

Obtain the name of the header field currently pointed at by the iterator.

operator++()

IMPORT_C voidoperator++()

Advance the iterator to the next field.

Member Data Documentation

const CHeaders * iHeaders

const CHeaders *iHeaders[private]

The headers whose fields we are iterating.

TInt iPosIdx

TInt iPosIdx[private]

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