TSglQueBase Class Reference
A base class that provides implementation for the singly linked list header.
It also encapsulates the offset value of a link object.
The class is abstract and is not intended to be instantiated.
TSglQue
Constructor & Destructor Documentation
TSglQueBase()
IMPORT_C | TSglQueBase | ( | ) | [protected] |
Default constructor.
It sets:
1. iHead to Null.
2. iLast to point to the head of queue.
3. iOffset to zero.
iHead iLast iOffset
TSglQueBase(TInt)
IMPORT_C | TSglQueBase | ( | TInt | aOffset | ) | [protected] |
Constructor with specified offset.
It sets:
1. iHead to Null
2. iLast to point to the head of queue.
3. iOffset to the specified value.
Parameters
TInt aOffset | The offset of a link object within an element. |
TSglQueBase(const TSglQueBase &)
Member Functions Documentation
DoAddFirst(TAny *)
IMPORT_C void | DoAddFirst | ( | TAny * | aPtr | ) | [protected] |
Parameters
TAny * aPtr | An untyped pointer to the element to be inserted. |
DoAddLast(TAny *)
IMPORT_C void | DoAddLast | ( | TAny * | aPtr | ) | [protected] |
Parameters
TAny * aPtr | An untyped pointer to the element to be inserted. |
DoRemove(TAny *)
IMPORT_C void | DoRemove | ( | TAny * | aPtr | ) | [protected] |
Parameters
TAny * aPtr | An untyped pointer to the element to be removed. |
IsEmpty()
IMPORT_C TBool | IsEmpty | ( | ) | const |
Tests whether the singly linked list is empty, i.e. has no list elements.
Reset()
Empties the singly 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(TInt)
IMPORT_C void | SetOffset | ( | TInt | aOffset | ) | |
Sets the offset of the link object from the start of a singly linked list element.
-
panic
- USER 75, if aOffset is not divisible by four.
TSglQue
Parameters
TInt aOffset | The offset of the link object from the start of a singly linked list element. |
operator=(const TSglQueBase &)
Member Data Documentation
TSglQueLink * iHead
A pointer to the first element in the list.
TSglQueLink * iLast
A pointer to the last element in the list.
TInt
iOffset
The offset of a component link object within elements that form the list.
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.