Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <e32std.h>
Link against: euser.lib

Class TDblQueIterBase

class TDblQueIterBase;

Description

A base class that provides implementation for the doubly linked list iterator.

It also encapsulates a pointer to the current link list element.

The class is abstract and is not intended to be instantiated.

Members

Defined in TDblQueIterBase:


Construction and destruction


TDblQueIterBase(TDblQueBase &)

protected: IMPORT_C TDblQueIterBase(TDblQueBase &aQue);

Description

Constructs the iterator for the specified doubly linked list.

Parameters

TDblQueBase &aQue

A reference to a doubly linked list header.

[Top]


Member functions


SetToFirst()

IMPORT_C void SetToFirst();

Description

Sets the iterator to point to the first element in the doubly linked list.

The function can be called to re-set the pointer at any time during the iterator's existence.

The function can be called even if the list has no elements.


SetToLast()

IMPORT_C void SetToLast();

Description

Sets the iterator to point to the last element in the doubly linked list. The function can be called to re-set the pointer at any time during the iterator's existence.

The function can be called even if the list has no elements.


DoPostInc()

protected: IMPORT_C TAny* DoPostInc();

Description

Gets the current item and then moves to the next item.

The function is an implementation for TDblQueIter::operator++(TInt).

Return value

TAny *

A pointer to the current list element.


DoPostDec()

protected: IMPORT_C TAny* DoPostDec();

Description

Gets the current item and then moves to the previous item.

The function is an implementation for TDblQueIter::operator--(TInt).

Return value

TAny *

A pointer to the current list element.


DoCurrent()

protected: IMPORT_C TAny* DoCurrent();

Description

Gets the current item in the queue.

The function is an implementation for TDblQueIter::operator T *().

Return value

TAny *

A pointer to the current list element.


DoSet(TAny *)

protected: IMPORT_C void DoSet(TAny *aLink);

Description

Sets the iterator to point to a specific element in the list.

The function is an implementation for TDblQueIter::Set(T &).

Parameters

TAny *aLink

A pointer to the current list element.

See also:

[Top]


Member data


iOffset

protected: TInt iOffset;

Description

The offset of a component link object within elements that form the list.


iHead

protected: TDblQueLinkBase * iHead;

Description

Pointer to the anchor for the list.


iNext

protected: TDblQueLinkBase * iNext;

Description

Pointer to the current element.