diff -r 89d6a7a84779 -r 25a17d01db0c Symbian3/Examples/guid-6013a680-57f9-415b-8851-c4fa63356636/class_c_queue.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Symbian3/Examples/guid-6013a680-57f9-415b-8851-c4fa63356636/class_c_queue.html Fri Jan 22 18:26:19 2010 +0000 @@ -0,0 +1,199 @@ + + +TB10.1 Example Applications: CQueue Class Reference + + + + +

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 on Thu Jan 21 10:33:07 2010 for TB10.1 Example Applications by  + +doxygen 1.5.3
+ +