OpenJAUS Software Development Kit
4.3.1
|
This is a brief description. More...
#include <PriorityQueue.h>
Inherits openjaus::system::Queue< Prioritized *>.
Public Member Functions | |
PriorityQueue () | |
virtual | ~PriorityQueue () |
virtual bool | push (Prioritized *item) |
virtual std::string | toString () const |
Public Member Functions inherited from openjaus::system::Queue< Prioritized *> | |
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< Prioritized * > & | getObjects () const |
Accessor to get the value of objects. More... | |
const Mutex & | getMutex () const |
Accessor to get the value of mutex. More... | |
Prioritized * | pop () |
Operation pop. More... | |
bool | isEmpty () const |
int | getSize () 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... | |
Friends | |
OPENJAUS_EXPORT friend std::ostream & | operator<< (std::ostream &output, const PriorityQueue &object) |
OPENJAUS_EXPORT friend std::ostream & | operator<< (std::ostream &output, const PriorityQueue *object) |
Additional Inherited Members | |
Static Public Attributes inherited from openjaus::system::Condition | |
static const int | DEFAULT_WAIT_MSEC = 500 |
Protected Attributes inherited from openjaus::system::Queue< Prioritized *> | |
std::string | name |
std::list< Prioritized * > | objects |
Mutex | mutex |
Protected Attributes inherited from openjaus::system::Condition | |
int | numberOfWaitingThreads |
pthread_cond_t | condition |
pthread_mutex_t | mutex |
Detailed description.
openjaus::system::PriorityQueue::PriorityQueue | ( | ) |
|
virtual |
|
virtual |
item |
Reimplemented from openjaus::system::Queue< Prioritized *>.
|
virtual |
Reimplemented from openjaus::system::Queue< Prioritized *>.
|
friend |
|
friend |