![Symbian Developer Library](../../../../a_stock/images/mainheading.gif)
![]() |
![]() |
|
class TDblQue : public TDblQueBase;
A templated class that provides the behaviour for managing a doubly linked list.
It also acts as the head of the list, maintaining the pointers into the list.
The template parameter defines the type of element that forms the doubly linked list and is the class that acts as host to the link object.
TDblQueBase
- A base class that provides implementation for the doubly linked list header.
TDblQue
- A templated class that provides the behaviour for managing a doubly linked list.
Defined in TDblQue
:
AddFirst(T &)
Inserts the specified list element at the front of the doubly linked list.AddLast(T &)
Inserts the specified list element at the back of the doubly linked list.First()const
Gets a pointer to the first list element in the doubly linked list.IsFirst(const T *)const
Tests whether the specified element is the first in the doubly linked list.IsHead(const T *)const
Tests whether the end of a list has been reached.IsLast(const T *)const
Tests whether the specified element is the last in the doubly linked list.Last()const
Gets a pointer to the last list element in the doubly linked list.TDblQue()
Constructs an empty list header and sets the offset value of the link object to ...TDblQue(TInt)
Constructs an empty list header and sets the offset of the link object to the sp...Inherited from 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(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.TDblQueLink
...inline TDblQue();
Constructs an empty list header and sets the offset value of the link object to zero.
In practice, never assume that the offset of the link object from the start of a list element is zero, even if the link object is declared as the first data member in the list element class.
If this default constructor is used, then call the TDblQueBase::SetOffset(TInt)
function of the base class to ensure that the offset value is set correctly.
TDblQueBase::SetOffset(TInt)
Sets the offset of the link object from the start of a doubly linked list elemen...inline TDblQue(TInt aOffset);
Constructs an empty list header and sets the offset of the link object to the specified value.
|
|
inline void AddFirst(T &aRef);
Inserts the specified list element at the front of the doubly linked list.
If the list is not empty, the specified element becomes the first in the list. What was previously the first element becomes the second in the list.
|
inline void AddLast(T &aRef);
Inserts the specified list element at the back of the doubly linked list.
If the list is not empty, the specified element becomes the last in the list. What was previously the last element becomes the next to last element in the list.
|
inline TBool IsHead(const T *aPtr) const;
Tests whether the end of a list has been reached.
A doubly linked list is circular; in following the chain of elements in a list (e.g. using the iterator operator++ or operator--), the chain eventually reaches the end of the list and aPtr corresponds to the header (although it will not point to a valid T object).
|
|
inline TBool IsFirst(const T *aPtr) const;
Tests whether the specified element is the first in the doubly linked list.
|
|
inline TBool IsLast(const T *aPtr) const;
Tests whether the specified element is the last in the doubly linked list.
|
|
inline T* First() const;
Gets a pointer to the first list element in the doubly linked list.
|
inline T* Last() const;
Gets a pointer to the last list element in the doubly linked list.
|