|
||
class TDblQueBase;
A base class that provides implementation for the doubly linked list header.
It also encapsulates the offset value of a link object.
The class is abstract and is not intended to be instantiated.
Defined in TDblQueBase
:
DoAddFirst(TAny *)
Implements the insertion of the specified list element at the front of the doubl...DoAddLast(TAny *)
Implements the insertion of the specified list element at the back of the doubly...DoAddPriority(TAny *)
Implements the insertion of the specified list element in priority order.IsEmpty()const
Tests whether the doubly linked list is empty, i.e. has no list elements.Reset()
Empties the doubly linked list.SetOffset(TInt)
Sets the offset of the link object from the start of a doubly linked list elemen...TDblQueBase()
Default constructor.TDblQueBase(TInt)
Constructor with specified offset.__DbgTestEmpty()const
Tests whether the queue is empty.iHead
The head, or anchor point of the queue.iOffset
The offset of a component link object within elements that form the list.TDblQue
A templated class that provides the behaviour for managing a doubly linked list.protected: IMPORT_C TDblQueBase();
Default constructor.
It sets:
1. iHead to point to this object in both the forwards and backwards direction.
2. iOffset to zero.
TDblQueBase::iHead
The head, or anchor point of the queue.TDblQueBase::iOffset
The offset of a component link object within elements that form the list.protected: IMPORT_C TDblQueBase(TInt aOffset);
Constructor with specified offset.
It sets:
1. iHead to point to this object in both the forwards and backwards direction.
2. iOffset to the specified value.
|
|
TDblQueBase::iHead
The head, or anchor point of the queue.TDblQueBase::iOffset
The offset of a component link object within elements that form the list.IMPORT_C TBool IsEmpty() const;
Tests whether the doubly linked list is empty, i.e. has no list elements.
|
IMPORT_C void SetOffset(TInt aOffset);
Sets the offset of the link object from the start of a doubly linked list element.
|
|
TDblQue
A templated class that provides the behaviour for managing a doubly linked list.IMPORT_C void Reset();
Empties the doubly linked list.
After a call to this function, there are no elements queued from the header; the elements are orphaned. Special care must
be taken when list elements are CBase
derived objects, i.e. are allocated on the heap.
protected: IMPORT_C void DoAddFirst(TAny *aPtr);
Implements the insertion of the specified list element at the front of the doubly linked list.
This function is called by TDblQue::AddFirst(T &)
.
|
TDblQue::AddFirst(T &)
Inserts the specified list element at the front of the doubly linked list.protected: IMPORT_C void DoAddLast(TAny *aPtr);
Implements the insertion of the specified list element at the back of the doubly linked list.
This function is called by TDblQue::AddLast(T &)
.
|
TDblQue::AddLast(T &)
Inserts the specified list element at the back of the doubly linked list.protected: IMPORT_C void DoAddPriority(TAny *aPtr);
Implements the insertion of the specified list element in priority order.
This function is called by TPriQue::Add(T &)
.
|
TPriQue::Add(T &)
Inserts the specified list element in descending priority order.protected: IMPORT_C void __DbgTestEmpty() const;
Tests whether the queue is empty.
The function is implemented as an __ASSERT_DEBUG.
|
protected: TInt iOffset;
The offset of a component link object within elements that form the list.