THTTPHdrFieldIter Class Reference

class THTTPHdrFieldIter

Iterator class to iterate the fields within a RHTTPHeaders .

Public Member Functions
THTTPHdrFieldIter (const CHeaders *)
~THTTPHdrFieldIter ()
IMPORT_C TBool AtEnd ()
IMPORT_C void First ()
IMPORT_C RStringTokenF operator() ()
IMPORT_C void operator++ ()
Private Member Functions
void CheckInvalidation ()
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 * aHeaders The header collection whose fields we want to iterate

~THTTPHdrFieldIter()

IMPORT_C ~THTTPHdrFieldIter ( )

Class destructor

Member Functions Documentation

AtEnd()

IMPORT_C TBool AtEnd ( ) const

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

CheckInvalidation()

void CheckInvalidation ( ) [private]

Check the iterator state for invalidity following deletions in the collection

First()

IMPORT_C void First ( )

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

operator()()

IMPORT_C RStringTokenF operator() ( )

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

operator++()

IMPORT_C void operator++ ( )

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