#include <e32std.h>
class TDeltaQueBase : public TDblQueBase |
Protected Attributes | |
---|---|
TInt * | iFirstDelta |
Public Member Functions | |
---|---|
IMPORT_C TBool | CountDown() |
IMPORT_C TBool | CountDown(TInt) |
IMPORT_C TBool | FirstDelta(TInt &) |
IMPORT_C void | Reset() |
Protected Member Functions | |
---|---|
TDeltaQueBase() | |
TDeltaQueBase(TInt) | |
IMPORT_C void | DoAddDelta(TAny *, TInt) |
IMPORT_C void | DoRemove(TAny *) |
IMPORT_C TAny * | DoRemoveFirst() |
Inherited Attributes | |
---|---|
TDblQueBase::iHead | |
TDblQueBase::iOffset |
A base class that provides implementation for the TDeltaQue template class.
The class is abstract and is not intended to be instantiated.
See also: TDeltaQue
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.
Parameters | |
---|---|
aOffset | The offset of a link object within an element. |
IMPORT_C TBool | CountDown | ( | ) |
Decrements the delta value of the first element by one, and returns true if the result is negative or zero.
Decrements the delta value of the first element by the specified value, and returns true if the result is negative or zero.
Parameters | |
---|---|
aValue | The amount by which the delta value is to be reduced. |
Implements the addition of the specified list element into the list.
This function is called by TDeltaQue::Add().
See also: TDeltaQue::Add
Parameters | |
---|---|
aPtr | Pointer to the list element to be inserted. |
aDelta | The 'distance' from the nominal zero point. |
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().
See also: TDeltaQue::Remove
Parameters | |
---|---|
aPtr | Pointer to the list element to be removed. |
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().
See also: TDeltaQue::RemoveFirst
IMPORT_C void | Reset | ( | ) |
Reimplemented from TDblQueBase::Reset()
Empties the doubly linked list, and resets the first delta pointer.