|
Original Symbian headers
Selected EUSER, Window Server, networking, graphics and device declarations
|
A base class that provides implementation for the doubly linked list header. More...
#include <e32std.h>
Public Member Functions | |
| IMPORT_C TBool | IsEmpty () const |
| Tests whether the doubly linked list is empty, i.e. | |
| 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. | |
Protected Member Functions | |
| IMPORT_C | TDblQueBase () |
| Default constructor. | |
| IMPORT_C | TDblQueBase (TInt aOffset) |
| Constructor with specified offset. | |
| IMPORT_C void | DoAddFirst (TAny *aPtr) |
| Implements the insertion of the specified list element at the front of the doubly linked list. | |
| IMPORT_C void | DoAddLast (TAny *aPtr) |
| Implements the insertion of the specified list element at the back of the doubly linked list. | |
| IMPORT_C void | DoAddPriority (TAny *aPtr) |
| Implements the insertion of the specified list element in priority order. | |
| IMPORT_C void | __DbgTestEmpty () const |
| Tests whether the queue is empty. | |
Protected Attributes | |
| TDblQueLink | iHead |
| The head, or anchor point of the queue. | |
| TInt | iOffset |
| The offset of a component link object within elements that form the list. | |
Friends | |
| class | TDblQueIterBase |
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.
|
protected |
Default constructor.
It sets:
iHead iOffset
(generated from Symbian Developer Library)
|
protected |
Constructor with specified offset.
It sets:
| aOffset | The offset of a link object within an element. |
Panic condition: USER 78, if aOffset is not divisible by four
(generated from Symbian Developer Library)
|
protected |
Tests whether the queue is empty.
The function is implemented as an __ASSERT_DEBUG.
Panic condition: USER 79, if the assertion fails.
(generated from Symbian Developer Library)
|
protected |
Implements the insertion of the specified list element at the front of the doubly linked list.
This function is called by TDblQue::AddFirst().
| aPtr | An untyped pointer to the element to be inserted. |
(generated from Symbian Developer Library)
|
protected |
Implements the insertion of the specified list element at the back of the doubly linked list.
This function is called by TDblQue::AddLast().
| aPtr | An untyped pointer to the element to be inserted. |
(generated from Symbian Developer Library)
|
protected |
Implements the insertion of the specified list element in priority order.
This function is called by TPriQue::Add().
| aPtr | An untyped pointer to the element to be inserted. |
(generated from Symbian Developer Library)
| IMPORT_C TBool TDblQueBase::IsEmpty | ( | ) | const |
Tests whether the doubly linked list is empty, i.e.
has no list elements.
(generated from Symbian Developer Library)
| IMPORT_C void TDblQueBase::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.
(generated from Symbian Developer Library)
| IMPORT_C void TDblQueBase::SetOffset | ( | TInt | aOffset | ) |
Sets the offset of the link object from the start of a doubly linked list element.
| aOffset | The offset of the link object from the start of a doubly linked list element. |
Panic condition: USER 78, if aOffset is not divisible by four.
(generated from Symbian Developer Library)
|
friend |
|
protected |
|
protected |