cmlabs::Queue Class Reference

#include <Queue.h>

Inheritance diagram for cmlabs::Queue:

Inheritance graph
[legend]
Collaboration diagram for cmlabs::Queue:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 Queue ()
virtual ~Queue ()
bool unitTest ()
Objectclone () const
bool isEmpty ()
int getCount ()
bool removeAll ()
virtual unsigned long getPayloadSize () const
 Get total size of payload.
JString add (JString str)
 Add and return newly created id.
JString add (JString id, JString str)
JString waitForNewEntryID (long ms)
 use to block until Queue is no longer empty
JString waitForNewEntry (JString id, long ms)
JString waitForNewEntry (long ms)
JString retrieveEntry (JString id)
JString retrieveEntry (int pos)
JString viewEntry (JString id)
JString viewEntry (int pos)

Protected Attributes

Dictionarydict
JMutex mutex
JSemaphore sem


Detailed Description

Definition at line 41 of file Queue.h.


Constructor & Destructor Documentation

cmlabs::Queue::Queue (  ) 

Definition at line 33 of file Queue.cpp.

cmlabs::Queue::~Queue (  )  [virtual]

Definition at line 38 of file Queue.cpp.


Member Function Documentation

bool cmlabs::Queue::unitTest (  )  [virtual]

Reimplemented from cmlabs::Object.

Definition at line 253 of file Queue.cpp.

Object* cmlabs::Queue::clone (  )  const [virtual]

Implements cmlabs::Object.

Definition at line 49 of file Queue.h.

bool cmlabs::Queue::isEmpty (  ) 

Definition at line 48 of file Queue.cpp.

int cmlabs::Queue::getCount (  ) 

Definition at line 57 of file Queue.cpp.

bool cmlabs::Queue::removeAll (  ) 

Definition at line 66 of file Queue.cpp.

unsigned long cmlabs::Queue::getPayloadSize (  )  const [virtual]

Get total size of payload.

Reimplemented from cmlabs::Object.

Definition at line 44 of file Queue.cpp.

JString cmlabs::Queue::add ( JString  str  ) 

Add and return newly created id.

Definition at line 71 of file Queue.cpp.

JString cmlabs::Queue::add ( JString  id,
JString  str 
)

Definition at line 81 of file Queue.cpp.

JString cmlabs::Queue::waitForNewEntryID ( long  ms  ) 

use to block until Queue is no longer empty

Definition at line 123 of file Queue.cpp.

JString cmlabs::Queue::waitForNewEntry ( JString  id,
long  ms 
)

Definition at line 153 of file Queue.cpp.

JString cmlabs::Queue::waitForNewEntry ( long  ms  ) 

Definition at line 91 of file Queue.cpp.

JString cmlabs::Queue::retrieveEntry ( JString  id  ) 

Definition at line 227 of file Queue.cpp.

JString cmlabs::Queue::retrieveEntry ( int  pos  ) 

Definition at line 236 of file Queue.cpp.

JString cmlabs::Queue::viewEntry ( JString  id  ) 

Definition at line 245 of file Queue.cpp.

JString cmlabs::Queue::viewEntry ( int  pos  ) 

Definition at line 249 of file Queue.cpp.


Member Data Documentation

Definition at line 72 of file Queue.h.

Definition at line 73 of file Queue.h.

Definition at line 74 of file Queue.h.


The documentation for this class was generated from the following files:

Generated on Tue Jul 7 16:23:44 2009 for CoreLibrary by  doxygen 1.5.6