#include <SortedQueue.hpp>
Public Types | |
typedef SortedQueue< T > | OfType |
typedef T | Task |
typedef T | value_type |
Public Member Functions | |
SortedQueue () | |
Constructs SortedQueue object. | |
~SortedQueue () | |
Destructs instance of SortedQueue object. | |
void | setUp () |
Initializes queuing environemnt. | |
bool | empty () const |
Returns true if queue does not have any tasks. | |
bool | full () const |
Always returns false . | |
void | flush () |
Clears the queue. | |
Task & | front () |
Returns reference to the top (highest priority) task in the queue which must be non-empty. | |
const Task & | front () const |
void | push (const Task &val) |
Pushes a task onto the queue for pickup by Executor. | |
void | pop () |
Removes a top (highest priority) task from the queue. | |
Protected Types | |
typedef std::deque< Task > | Container |
Protected Attributes | |
Container | M_container |
Use SortedQueue class to create objects that will serve as priority task queues. Scheduler uses an instance of a queue object to buffer arriving tasks. SortedQueue requires that queued tasks be less-than comparable.
|
Destructs instance of SortedQueue object.
|
|
Returns Otherwise returns false.
|
|
Clears the queue.
|
|
Returns reference to the top (highest priority) task in the queue which must be non-empty.
|
|
Always returns
|
|
Removes a top (highest priority) task from the queue.
|
|
Pushes a task onto the queue for pickup by Executor.
|
|
Initializes queuing environemnt. Called just before Scheduler begins queing tasks. |