TDeltaQueBase Class Reference

class TDeltaQueBase : public TDblQueBase

A base class that provides implementation for the TDeltaQue template class.

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

TDeltaQue

Inherits from

Constructor & Destructor Documentation

TDeltaQueBase()

IMPORT_C TDeltaQueBase ( ) [protected]

Default constructor.

It sets iFirstDelta to NULL.

TDeltaQueBase::iFirstDelta

TDeltaQueBase(TInt)

IMPORT_C TDeltaQueBase ( TInt aOffset ) [protected]

Constructor with specified offset.

It sets:

1. iFirstDelta to NULL

2. TDblQueBase::iOffset to the specified value, through a call to the base class constructor.

TDeltaQueBase::iFirstDelta TDblQueBase::iOffset

Parameters

TInt aOffset The offset of a link object within an element.

Member Functions Documentation

CountDown()

IMPORT_C TBool CountDown ( )

Decrements the delta value of the first element by one, and returns true if the result is negative or zero.

CountDown(TInt)

IMPORT_C TBool CountDown ( TInt aValue )

Decrements the delta value of the first element by the specified value, and returns true if the result is negative or zero.

Parameters

TInt aValue The amount by which the delta value is to be reduced.

DoAddDelta(TAny *, TInt)

IMPORT_C void DoAddDelta ( TAny * aPtr,
TInt aDelta
) [protected]

Implements the addition of the specified list element into the list.

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

TDeltaQue::Add

Parameters

TAny * aPtr Pointer to the list element to be inserted.
TInt aDelta The 'distance' from the nominal zero point.

DoRemove(TAny *)

IMPORT_C void DoRemove ( TAny * aPtr ) [protected]

Implements the removal of the specified list element from the list.

This function is called by TDeltaQue::Remove() .

TDeltaQue::Remove

Parameters

TAny * aPtr Pointer to the list element to be removed.

DoRemoveFirst()

IMPORT_C TAny * DoRemoveFirst ( ) [protected]

Implements the removal of the first list element from the linked list if its delta value is zero or negative.

This function is called by TDeltaQue::RemoveFirst() .

TDeltaQue::RemoveFirst

FirstDelta(TInt &)

IMPORT_C TBool FirstDelta ( TInt & aValue )

Gets the delta value of the first list element.

Parameters

TInt & aValue On return, contsins the delta value of the first element. Note that this remains unchanged if there is no first element.

Reset()

IMPORT_C void Reset ( )

Empties the doubly linked list, and resets the first delta pointer.

Member Data Documentation

TInt * iFirstDelta

TInt * iFirstDelta [protected]

Pointer to the delta value in the first link element.