DABC (Data Acquisition Backbone Core)
2.9.9
|
Queue of buffers More...
#include <dabc/BuffersQueue.h>
Public Member Functions | |
BuffersQueue (unsigned capacity) | |
unsigned | Capacity () const |
void | Cleanup () |
void | Cleanup (Mutex *m) |
bool | Empty () const |
bool | Full () const |
Buffer | Item (unsigned n) const |
Returns reference on the Buffer in the queue, one can create any kind of buffer copies from it. More... | |
bool | PopBuffer (Buffer &buf) |
bool | PushBuffer (Buffer &buf) |
unsigned | Size () const |
BufferSize_t | TotalBuffersSize () const |
virtual | ~BuffersQueue () |
Protected Attributes | |
unsigned | front |
unsigned | size |
unsigned | tail |
std::vector< dabc::Buffer > | vect |
Queue of buffers
Organizes queue of dabc::Buffer objects in memory. Locking should be done outside, when necessary.
Definition at line 39 of file BuffersQueue.h.
|
inline |
Definition at line 49 of file BuffersQueue.h.
|
inlinevirtual |
Definition at line 59 of file BuffersQueue.h.
|
inline |
Definition at line 61 of file BuffersQueue.h.
|
inline |
Definition at line 70 of file BuffersQueue.h.
|
inline |
Definition at line 79 of file BuffersQueue.h.
|
inline |
Definition at line 81 of file BuffersQueue.h.
|
inline |
Definition at line 83 of file BuffersQueue.h.
|
inline |
Definition at line 85 of file BuffersQueue.h.
void dabc::BuffersQueue::Cleanup | ( | ) |
Definition at line 20 of file BuffersQueue.cxx.
void dabc::BuffersQueue::Cleanup | ( | Mutex * | m | ) |
Definition at line 29 of file BuffersQueue.cxx.
|
inline |
Returns reference on the Buffer in the queue, one can create any kind of buffer copies from it.
Definition at line 93 of file BuffersQueue.h.
|
inline |
Definition at line 98 of file BuffersQueue.h.
|
protected |
Definition at line 42 of file BuffersQueue.h.
|
protected |
Definition at line 44 of file BuffersQueue.h.
|
protected |
Definition at line 45 of file BuffersQueue.h.
|
protected |
Definition at line 46 of file BuffersQueue.h.