CCdlRefs::TIterator Class Reference

class CCdlRefs::TIterator

This is an iterator type for CCdlRefs. There are three sub-types of iterator. One type iterates all references in the collection. Another iterates only those with a particular UID. A third iterates only those with a particular file name.

Public Member Functions
TIterator(const TIterator &)
TBool operator!=(const TIterator &)
const TCdlRef &operator*()
IMPORT_C TIterator &operator++()
TIterator operator++(TInt)
const TCdlRef *operator->()
TIterator &operator=(const TIterator &)
TBool operator==(const TIterator &)
Protected Member Functions
TIterator(const CRefs &, TInt)
TBool Match(TInt)
Protected Attributes
TInt iIndex
const CRefs &iRefs

Constructor & Destructor Documentation

TIterator(const TIterator &)

IMPORT_CTIterator(const TIterator &aOther)

Copy constructor

Parameters

const TIterator & aOther

TIterator(const CRefs &, TInt)

TIterator(const CRefs &aRefs,
TIntaIndex
)[protected]

Parameters

const CRefs & aRefs
TInt aIndex

Member Functions Documentation

Match(TInt)

TBool Match(TIntaIndex)const [protected, virtual]

Parameters

TInt aIndex

operator!=(const TIterator &)

TBool operator!=(const TIterator &aOther)const [inline]

Inequality operator

Parameters

const TIterator & aOther

operator*()

const TCdlRef &operator*()const [inline]

Dereference operator

operator++()

IMPORT_C TIterator &operator++()

pre-increment operator i.e. ++myIterator this operator is preferred to the post-increment operator.

operator++(TInt)

TIterator operator++(TInt)[inline]

post-increment operator i.e. myIterator++ the pre-increment operator is preferred to this operator.

Parameters

TInt

operator->()

const TCdlRef *operator->()const [inline]

Dereference and access operator

operator=(const TIterator &)

TIterator &operator=(const TIterator &aOther)[inline]

Assignment operator

Parameters

const TIterator & aOther

operator==(const TIterator &)

TBool operator==(const TIterator &aOther)const [inline]

Equality operator

Parameters

const TIterator & aOther

Member Data Documentation

TInt iIndex

TInt iIndex[protected]

const CRefs & iRefs

const CRefs &iRefs[protected]