|
Original Symbian headers
Selected EUSER, Window Server, networking, graphics and device declarations
|
A base class that provides implementation for the singly linked list header. More...
#include <e32std.h>
Public Member Functions | |
| IMPORT_C TBool | IsEmpty () const |
| Tests whether the singly linked list is empty, i.e. | |
| IMPORT_C void | SetOffset (TInt aOffset) |
| Sets the offset of the link object from the start of a singly linked list element. | |
| IMPORT_C void | Reset () |
| Empties the singly linked list. | |
Protected Member Functions | |
| IMPORT_C | TSglQueBase () |
| Default constructor. | |
| IMPORT_C | TSglQueBase (TInt aOffset) |
| Constructor with specified offset. | |
| IMPORT_C void | DoAddFirst (TAny *aPtr) |
| Implements the insertion of a list element at the front of the singly linked list. | |
| IMPORT_C void | DoAddLast (TAny *aPtr) |
| Implements the insertion of a list element at the back of the singly linked list. | |
| IMPORT_C void | DoRemove (TAny *aPtr) |
| Implements the removal of a list element from the singly linked list. | |
Protected Attributes | |
| TSglQueLink * | iHead |
| A pointer to the first element in the list. | |
| TSglQueLink * | iLast |
| A pointer to the last element in the list. | |
| TInt | iOffset |
| The offset of a component link object within elements that form the list. | |
Friends | |
| class | TSglQueIterBase |
A base class that provides implementation for the singly 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 iLast 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 75, if aOffset is not divisible by four
(generated from Symbian Developer Library)
|
protected |
Implements the insertion of a list element at the front of the singly linked list.
This function is called by TSglQue::AddFirst().
| aPtr | An untyped pointer to the element to be inserted. |
(generated from Symbian Developer Library)
|
protected |
Implements the insertion of a list element at the back of the singly linked list.
This function is called by TSglQue::AddLast().
| aPtr | An untyped pointer to the element to be inserted. |
(generated from Symbian Developer Library)
|
protected |
Implements the removal of a list element from the singly linked list.
This function is called by TSglQue::Remove().
| aPtr | An untyped pointer to the element to be removed. |
(generated from Symbian Developer Library)
| IMPORT_C TBool TSglQueBase::IsEmpty | ( | ) | const |
Tests whether the singly linked list is empty, i.e.
has no list elements.
(generated from Symbian Developer Library)
| IMPORT_C void TSglQueBase::Reset | ( | ) |
Empties the singly 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 TSglQueBase::SetOffset | ( | TInt | aOffset | ) |
Sets the offset of the link object from the start of a singly linked list element.
| aOffset | The offset of the link object from the start of a singly linked list element. |
Panic condition: USER 75, if aOffset is not divisible by four.
(generated from Symbian Developer Library)
|
friend |
|
protected |
|
protected |
|
protected |