Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <e32std.h>
Link against: euser.lib

Class TDblQueLinkBase

class TDblQueLinkBase;

Description

A base class that provides implementation for the link object of a doubly linked list.

It also encapsulates pointers both to the next and the previous link objects in the doubly linked list.

The class is abstract and is not intended to be instantiated.

Members

Defined in TDblQueLinkBase:

See also:


Construction and destruction


TDblQueLinkBase()

inline TDblQueLinkBase();

Description

Default constructor.

It sets the pointer to the next link object to NULL.

See also:

[Top]


Member functions


Enque(TDblQueLinkBase *)

IMPORT_C void Enque(TDblQueLinkBase *aLink);

Description

Inserts this link object after the specified link object.

The specified link object must already be in the doubly linked list.

The function cannot be used to insert a list element into the beginning or end of a doubly linked list; this is handled by the TDblQue::AddFirst(T &) and TDblQue::AddLast(T &) functions.

Parameters

TDblQueLinkBase *aLink

A pointer to the link object embedded within the list element to which this link object is to be connected. It must not be NULL.

See also:


AddBefore(TDblQueLinkBase *)

IMPORT_C void AddBefore(TDblQueLinkBase *aLink);

Description

Inserts this link object before the specified link object.

The specified link object must already be in the doubly linked list.

The function cannot be used to insert a list element into the beginning or end of a doubly linked list; this is handled by the TDblQue::AddFirst(T &) and TDblQue::AddLast(T &) functions.

Parameters

TDblQueLinkBase *aLink

A pointer to the link object embedded within the list element to which this link object is to be connected. It must not be NULL.

See also:

[Top]


Member data


iNext

TDblQueLinkBase * iNext;

Description

A pointer to the next link object in the list.


iPrev

TDblQueLinkBase * iPrev;

Description

A pointer to the previous link object in the list.