|
OpenJAUS Software Development Kit
4.3.1
|
This is a brief description. More...
#include <Queue.h>
Inherits openjaus::system::Condition.
Public Member Functions | |
| Queue () | |
| virtual | ~Queue () |
| std::string | getName () const |
| Accessor to get the value of name. More... | |
| bool | setName (std::string name) |
| Accessor to set value of name. More... | |
| const std::list< Type > & | getObjects () const |
| Accessor to get the value of objects. More... | |
| const Mutex & | getMutex () const |
| Accessor to get the value of mutex. More... | |
| virtual bool | push (Type item) |
| Type | pop () |
| Operation pop. More... | |
| bool | isEmpty () const |
| int | getSize () const |
| virtual std::string | toString () const |
Public Member Functions inherited from openjaus::system::Condition | |
| Condition () | |
| virtual | ~Condition () |
| void | signal () |
| Operation signal. More... | |
| void | signalAll () |
| Operation signalAll. More... | |
| bool | timedWait (int milliseconds) |
| Operation timedWait. More... | |
Protected Attributes | |
| std::string | name |
| std::list< Type > | objects |
| Mutex | mutex |
Protected Attributes inherited from openjaus::system::Condition | |
| int | numberOfWaitingThreads |
| pthread_cond_t | condition |
| pthread_mutex_t | mutex |
Additional Inherited Members | |
Static Public Attributes inherited from openjaus::system::Condition | |
| static const int | DEFAULT_WAIT_MSEC = 500 |
Detailed description.
| openjaus::system::Queue< Type >::Queue | ( | ) |
|
virtual |
| const Mutex & openjaus::system::Queue< Type >::getMutex | ( | ) | const |
| std::string openjaus::system::Queue< Type >::getName | ( | void | ) | const |
| const std::list< Type > & openjaus::system::Queue< Type >::getObjects | ( | ) | const |
| int openjaus::system::Queue< Type >::getSize | ( | ) | const |
| bool openjaus::system::Queue< Type >::isEmpty | ( | ) | const |
| Type openjaus::system::Queue< Type >::pop | ( | ) |
|
virtual |
| item |
Reimplemented in openjaus::system::PriorityQueue.
| bool openjaus::system::Queue< Type >::setName | ( | std::string | name | ) |
| name | The value of the new name. |
|
virtual |
Reimplemented from openjaus::system::Condition.
Reimplemented in openjaus::system::PriorityQueue.
|
protected |
|
protected |
|
protected |