Symbian
 Developer Library

DEVELOPER LIBRARY

[Index] [Glossary] [Previous] [Next]



Location: e32std.h
Link against: euser.lib

Class TDblQueBase

TDblQueBase

Support

Supported from 5.0

Description

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(), TDblQueBase(), __DbgTestEmpty(), iHead, iOffset, operator=()


Construction


TDblQueBase()

protected : TDblQueBase();

Description

Default constructor.

It sets:

See also:


TDblQueBase()

protected : TDblQueBase(TInt anOffset);

Description

Constructor with specified offset.

It sets:

Parameters

TInt anOffset

The offset of a link object within an element.

See also:

[Top]


Member functions


IsEmpty()

TBool IsEmpty() const;

Description

Tests whether the doubly linked list is empty, i.e. has no list elements.

Return value

TBool

True, if the doubly linked list is empty; false, otherwise.


Reset()

void Reset();

Description

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.


SetOffset()

void SetOffset(TInt anOffset);

Description

Sets the offset of the link object from the start of a doubly linked list element.

Parameters

TInt anOffset

The offset of the link object from the start of a doubly linked list element. The value must be divisible by four, otherwise the constructor raises a USER 78 panic..

See also:


DoAddFirst()

protected : void DoAddFirst(TAny* aPtr);

Description

Implements the insertion of the specified list element at the front of the doubly linked list.

This function is called by TDblQue::AddFirst().

Parameters

TAny* aPtr

An untyped pointer to the element to be inserted.

See also:


DoAddLast()

protected : void DoAddLast(TAny* aPtr);

Description

Implements the insertion of the specified list element at the back of the doubly linked list.

This function is called by TDblQue::AddLast().

Parameters

TAny* aPtr

An untyped pointer to the element to be inserted.

See also:


DoAddPriority()

protected : void DoAddPriority(TAny* aPtr);

Description

Implements the insertion of the specified list element in priority order.

This function is called by TPriQue::Add().

Parameters

TAny* aPtr

An untyped pointer to the element to be inserted.

See also:


__DbgTestEmpty()

protected : void __DbgTestEmpty() const;

Description

Tests whether the queue is empty.

The function is implemented as an __ASSERT_DEBUG. If the assertion fails, a USER 79 panic is raised.

[Top]


Member data


iHead

protected : TDblQueLink iHead;

Description

The head, or anchor point of the queue.


iOffset

protected : TInt iOffset;

Description

The offset of a component link object within elements that form the list.

[Top]


Internal members


TDblQueBase()

TDblQueBase(const TDblQueBase& aQue);
    

Description

This is internal and not intended for use.


operator=()

TDblQueBase& operator=(const TDblQueBase& aQue);

Description

This is internal and not intended for use.