Location:
e32std.h
Link against: euser.lib
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()
, DoAddLast()
, DoAddPriority()
, IsEmpty()
, Reset()
, SetOffset()
, TDblQueBase()
, TDblQueBase()
, __DbgTestEmpty()
, iHead
, iOffset
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.
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.
|
|
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.
|
|
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()
.
|
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()
.
|
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()
.
|
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.