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_CTDeltaQueBase()[protected]

Default constructor.

It sets iFirstDelta to NULL.

TDeltaQueBase::iFirstDelta

TDeltaQueBase(TInt)

IMPORT_CTDeltaQueBase(TIntaOffset)[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 aOffsetThe offset of a link object within an element.

Member Functions Documentation

CountDown()

IMPORT_C TBoolCountDown()

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

CountDown(TInt)

IMPORT_C TBoolCountDown(TIntaValue)

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

Parameters

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

DoAddDelta(TAny *, TInt)

IMPORT_C voidDoAddDelta(TAny *aPtr,
TIntaDelta
)[protected]

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

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

TDeltaQue::Add

Parameters

TAny * aPtrPointer to the list element to be inserted.
TInt aDeltaThe 'distance' from the nominal zero point.

DoRemove(TAny *)

IMPORT_C voidDoRemove(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 * aPtrPointer 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 TBoolFirstDelta(TInt &aValue)

Gets the delta value of the first list element.

Parameters

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

Reset()

IMPORT_C voidReset()

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.