Orocos Real-Time Toolkit
2.9.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 AtomicQueue< T >::size_type | size_type |
Public Member Functions | |
MWSRQueue (int qsize) | |
Create a mw/sr queue of fixed size. More... | |
bool | isFull () const |
Inspect if the Queue is full. More... | |
bool | isEmpty () const |
Inspect if the Queue is empty. More... | |
size_type | capacity () const |
Return the maximum number of items this queue can contain. More... | |
size_type | size () const |
Return the number of elements in the queue. More... | |
bool | enqueue (const T &value) |
Enqueue an item. More... | |
bool | dequeue (T &result) |
Dequeue an item. More... | |
const T | front () const |
Return the next to be read value. More... | |
void | clear () |
Clear all contents of the Queue and thus make it empty. More... | |
This object represents the default Multi-Writer, Single-Reader queue implementation used by Orocos objects.
Definition at line 66 of file MWSRQueue.hpp.
|
inherited |
Definition at line 163 of file AtomicMWSRQueue.hpp.
|
inline |
Create a mw/sr queue of fixed size.
Definition at line 77 of file MWSRQueue.hpp.
|
inlinevirtualinherited |
Return the maximum number of items this queue can contain.
Implements RTT::internal::AtomicQueue< T >.
Definition at line 210 of file AtomicMWSRQueue.hpp.
|
inlinevirtualinherited |
Clear all contents of the Queue and thus make it empty.
Implements RTT::internal::AtomicQueue< T >.
Definition at line 270 of file AtomicMWSRQueue.hpp.
Referenced by RTT::internal::AtomicMWSRQueue< T >::AtomicMWSRQueue().
|
inlinevirtualinherited |
Dequeue an item.
value | Stores the dequeued value. It is unchanged when dequeue returns false and contains the dequeued value when it returns true. |
Implements RTT::internal::AtomicQueue< T >.
Definition at line 249 of file AtomicMWSRQueue.hpp.
|
inlinevirtualinherited |
Enqueue an item.
value | The value to enqueue. |
Implements RTT::internal::AtomicQueue< T >.
Definition at line 231 of file AtomicMWSRQueue.hpp.
|
inlinevirtualinherited |
Return the next to be read value.
Implements RTT::internal::AtomicQueue< T >.
Definition at line 262 of file AtomicMWSRQueue.hpp.
|
inlinevirtualinherited |
Inspect if the Queue is empty.
Implements RTT::internal::AtomicQueue< T >.
Definition at line 199 of file AtomicMWSRQueue.hpp.
|
inlinevirtualinherited |
Inspect if the Queue is full.
Implements RTT::internal::AtomicQueue< T >.
Definition at line 185 of file AtomicMWSRQueue.hpp.
|
inlinevirtualinherited |
Return the number of elements in the queue.
Implements RTT::internal::AtomicQueue< T >.
Definition at line 218 of file AtomicMWSRQueue.hpp.