OpenJAUS Software Development Kit  4.3.1
Public Member Functions | Friends | List of all members
openjaus::system::PriorityQueue Class Reference

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 MutexgetMutex () const
 Accessor to get the value of mutex. More...
 
Prioritizedpop ()
 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

Detailed description.

Author
Name (name@.nosp@m.emai.nosp@m.l.com)

Constructor & Destructor Documentation

§ PriorityQueue()

openjaus::system::PriorityQueue::PriorityQueue ( )

§ ~PriorityQueue()

openjaus::system::PriorityQueue::~PriorityQueue ( )
virtual

Member Function Documentation

§ push()

bool openjaus::system::PriorityQueue::push ( Prioritized item)
virtual
Parameters
item

Reimplemented from openjaus::system::Queue< Prioritized *>.

§ toString()

std::string openjaus::system::PriorityQueue::toString ( ) const
virtual

Friends And Related Function Documentation

§ operator<< [1/2]

OPENJAUS_EXPORT friend std::ostream& operator<< ( std::ostream &  output,
const PriorityQueue object 
)
friend

§ operator<< [2/2]

OPENJAUS_EXPORT friend std::ostream& operator<< ( std::ostream &  output,
const PriorityQueue object 
)
friend

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