CQueue Class Reference

List of all members.

Public Member Functions

void Insert ()
void Remove ()
TBool IsEmpty ()
void ConstructL ()
void GetTokens (RArray< TInt > &aArray)
 ~CQueue ()

Static Public Member Functions

static CQueueNewL ()

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 35 of file queue.h.


Constructor & Destructor Documentation

CQueue::~CQueue (  ) 

Destructor.

Definition at line 140 of file queue.cpp.


Member Function Documentation

void CQueue::Insert (  ) 

Inserts a token into the queue.

See also:
RCondVar::Signal().

Definition at line 62 of file queue.cpp.

void CQueue::Remove (  ) 

Removes a token from the queue.

See also:
RCondVar::Wait().

Definition at line 90 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 116 of file queue.cpp.

void CQueue::ConstructL (  ) 

The second phase constructor of the CQueue class.

See also:
RCondVar::CreateLocal().
RMutex::CreateLocal().

Definition at line 43 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 29 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 129 of file queue.cpp.


Generated by  doxygen 1.6.2