|
||
class TDblQueIterBase;
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()
Gets the current item in the queue.DoPostDec()
Gets the current item and then moves to the previous item.DoPostInc()
Gets the current item and then moves to the next item.DoSet(TAny *)
Sets the iterator to point to a specific element in the list.SetToFirst()
Sets the iterator to point to the first element in the doubly linked list.SetToLast()
Sets the iterator to point to the last element in the doubly linked list. The fu...TDblQueIterBase(TDblQueBase &)
Constructs the iterator for the specified doubly linked list.iHead
Pointer to the anchor for the list.iNext
Pointer to the current element.iOffset
The offset of a component link object within elements that form the list.protected: IMPORT_C TDblQueIterBase(TDblQueBase &aQue);
Constructs the iterator for the specified doubly linked list.
|
IMPORT_C void SetToFirst();
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.
IMPORT_C void SetToLast();
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.
protected: IMPORT_C TAny* DoPostInc();
Gets the current item and then moves to the next item.
The function is an implementation for TDblQueIter::operator++(TInt)
.
|
protected: IMPORT_C TAny* DoPostDec();
Gets the current item and then moves to the previous item.
The function is an implementation for TDblQueIter::operator--(TInt)
.
|
protected: IMPORT_C TAny* DoCurrent();
Gets the current item in the queue.
The function is an implementation for TDblQueIter::operator T *()
.
|
protected: IMPORT_C void DoSet(TAny *aLink);
Sets the iterator to point to a specific element in the list.
The function is an implementation for TDblQueIter::Set(T &)
.
|
TDblQueIter::Set(T &)
Sets the iterator to point to a specific element in the list.protected: TInt iOffset;
The offset of a component link object within elements that form the list.
protected: TDblQueLinkBase * iNext;
Pointer to the current element.