CQueue Class Reference
List of all members.
Detailed Description
A wrapper class that implements the queue of integer tokens. It owns a handle to an integer array. This array is treated as a queue of tokens. It provides functions to insert, delete and display elements in the queue. It also owns a handle to the condition variable and a mutex variable.
- See also:
- RCondVar.
-
RMutex.
Definition at line 48 of file queue.h.
Constructor & Destructor Documentation
Member Function Documentation
Inserts a token into the queue.
- See also:
- RCondVar::Signal().
Definition at line 75 of file queue.cpp.
Removes a token from the queue.
- See also:
- RCondVar::Wait().
Definition at line 103 of file queue.cpp.
TBool CQueue::IsEmpty |
( |
|
) |
|
Checks if the queue has at least one element.
- Returns:
- ETrue If the number of elements in the queue is greater than one, else EFalse.
Definition at line 129 of file queue.cpp.
void CQueue::ConstructL |
( |
|
) |
|
The second phase constructor of the CQueue class.
- See also:
- RCondVar::CreateLocal().
-
RMutex::CreateLocal().
Definition at line 56 of file queue.cpp.
CQueue * CQueue::NewL |
( |
|
) |
[static] |
Performs the two-phase construction of an object of the CQueue class.
- Returns:
- A CQueue object.
Definition at line 42 of file queue.cpp.
void CQueue::GetTokens |
( |
RArray< TInt > & |
aArray |
) |
|
Constructs an array of elements present in the CQueue::iArray queue.
- Parameters:
-
| aArray | A reference to the array to be constructed. |
Definition at line 142 of file queue.cpp.