Orocos Real-Time Toolkit
2.5.0
|
This object represents the default Multi-Writer, Single-Reader queue implementation used by Orocos objects. More...
#include <rtt/internal/MWSRQueue.hpp>
Public Types | |
typedef unsigned int | size_type |
Public Member Functions | |
MWSRQueue (int qsize) | |
Create a mw/sr queue of fixed size. | |
bool | isFull () const |
Inspect if the Queue is full. | |
bool | isEmpty () const |
Inspect if the Queue is empty. | |
size_type | capacity () const |
Return the maximum number of items this queue can contain. | |
size_type | size () const |
Return the number of elements in the queue. | |
bool | enqueue (const T &value) |
Enqueue an item. | |
bool | dequeue (T &result) |
Dequeue an item. | |
const T | front () const |
Return the next to be read value. | |
void | clear () |
Clear all contents of the Queue and thus make it empty. |
This object represents the default Multi-Writer, Single-Reader queue implementation used by Orocos objects.
Definition at line 66 of file MWSRQueue.hpp.
bool RTT::internal::AtomicMWSRQueue< T >::dequeue | ( | T & | result | ) | [inline, inherited] |
Dequeue an item.
value | Stores the dequeued value. It is unchanged when dequeue returns false and contains the dequeued value when it returns true. |
Definition at line 247 of file AtomicMWSRQueue.hpp.
Referenced by RTT::base::BufferLockFree< T >::clear(), RTT::base::BufferLockFree< T >::Pop(), RTT::base::BufferLockFree< T >::PopWithoutRelease(), and RTT::ExecutionEngine::removeSelfFunction().
bool RTT::internal::AtomicMWSRQueue< T >::enqueue | ( | const T & | value | ) | [inline, inherited] |
Enqueue an item.
value | The value to enqueue. |
Definition at line 229 of file AtomicMWSRQueue.hpp.
Referenced by RTT::ExecutionEngine::process(), RTT::base::BufferLockFree< T >::Push(), RTT::ExecutionEngine::removeSelfFunction(), and RTT::ExecutionEngine::runFunction().
bool RTT::internal::AtomicMWSRQueue< T >::isEmpty | ( | ) | const [inline, inherited] |
Inspect if the Queue is empty.
Definition at line 197 of file AtomicMWSRQueue.hpp.
Referenced by RTT::base::BufferLockFree< T >::empty(), and RTT::ExecutionEngine::hasWork().
bool RTT::internal::AtomicMWSRQueue< T >::isFull | ( | ) | const [inline, inherited] |
Inspect if the Queue is full.
Definition at line 183 of file AtomicMWSRQueue.hpp.
Referenced by RTT::base::BufferLockFree< T >::full().