Symbian
 Developer Library

DEVELOPER LIBRARY

[Index] [Glossary] [Previous] [Next]



Location: e32std.h
Link against: euser.lib

Class TDblQueIterBase

TDblQueIterBase

Support

Supported from 5.0

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.

Defined in TDblQueIterBase:
DoCurrent(), DoPostDec(), DoPostInc(), DoSet(), SetToFirst(), SetToLast(), TDblQueIterBase(), iHead, iNext, iOffset


Member functions


SetToFirst()

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()

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.


TDblQueIterBase()

protected : TDblQueIterBase(TDblQueBase& aQue);

Description

Constructs the iterator for the specified doubly linked list.

Parameters

TDblQueBase& aQue

A reference to a doubly linked list header.


DoPostInc()

protected : TAny* DoPostInc();

Description

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

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

Return value

TAny*

A pointer to the current list element.


DoPostDec()

protected : TAny* DoPostDec();

Description

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

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

Return value

TAny*

A pointer to the current list element.


DoCurrent()

protected : TAny* DoCurrent();

Description

Returns 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()

protected : 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().

Parameters

TAny* aLink

A pointer to the current list element.

[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.