Orocos Real-Time Toolkit
2.8.3
|
This object represents the default Multi-Writer/Multi-Reader queue implementation used by Orocos objects. More...
#include <rtt/internal/Queue.hpp>
Public Types | |
typedef unsigned int | size_type |
Public Member Functions | |
Queue (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 exact 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/Multi-Reader queue implementation used by Orocos objects.
|
inherited |
Definition at line 184 of file AtomicQueue.hpp.
|
inline |
|
inlineinherited |
Return the maximum number of items this queue can contain.
Definition at line 231 of file AtomicQueue.hpp.
|
inlineinherited |
Clear all contents of the Queue and thus make it empty.
Definition at line 304 of file AtomicQueue.hpp.
Referenced by RTT::internal::AtomicQueue< T >::AtomicQueue().
|
inlineinherited |
Dequeue an item.
value | The value dequeued. |
Definition at line 278 of file AtomicQueue.hpp.
References RTT::os::CAS().
|
inlineinherited |
Enqueue an item.
value | The value to enqueue, not zero. |
Definition at line 258 of file AtomicQueue.hpp.
References RTT::os::CAS().
|
inlineinherited |
Return the next to be read value.
Definition at line 296 of file AtomicQueue.hpp.
|
inlineinherited |
Inspect if the Queue is empty.
Definition at line 220 of file AtomicQueue.hpp.
|
inlineinherited |
Inspect if the Queue is full.
Definition at line 206 of file AtomicQueue.hpp.
|
inlineinherited |
Return the exact number of elements in the queue.
This is slow because it scans the whole queue.
Definition at line 241 of file AtomicQueue.hpp.