artdaq
v3_02_01
|
This class contains tracking information for all Fragment objects which have been received from a specific source. More...
#include <artdaq/DAQrate/FragmentReceiverManager.hh>
Public Member Functions | |
FragmentStoreElement () | |
FragmentStoreElement Constructor. | |
bool | empty () const |
Are any Fragment objects contained in this FragmentStoreElement? More... | |
void | emplace_front (FragmentPtr &&frag) |
Add a Fragment to the front of the FragmentStoreElement. More... | |
void | emplace_back (FragmentPtr &&frag) |
Add a Fragment to the end of the FragmentStoreElement. More... | |
FragmentPtr | front () |
Remove the first Fragment from the FragmentStoreElement and return it. More... | |
void | SetEndOfData (size_t eod) |
Set the End-Of-Data marker value for this Receiver. More... | |
size_t | GetEndOfData () const |
Get the value of the End-Of-Data marker for this Receiver. More... | |
size_t | size () const |
Get the number of Fragments stored in this FragmentStoreElement. More... | |
This class contains tracking information for all Fragment objects which have been received from a specific source.
This class was designed so that there could be a mutex for each source, instead of locking all sources whenever a Fragment had to be retrieved. FragmentStoreElement is itself a container type, sorted by Fragment arrival time. It is a modified queue, with only the first element accessible, but it allows elements to be added to either end (for rejected Fragments).
Definition at line 136 of file FragmentReceiverManager.hh.
|
inline |
Add a Fragment to the end of the FragmentStoreElement.
frag | Fragment to add |
Definition at line 174 of file FragmentReceiverManager.hh.
|
inline |
Add a Fragment to the front of the FragmentStoreElement.
frag | Fragment to add |
Definition at line 163 of file FragmentReceiverManager.hh.
|
inline |
Are any Fragment objects contained in this FragmentStoreElement?
Definition at line 154 of file FragmentReceiverManager.hh.
|
inline |
Remove the first Fragment from the FragmentStoreElement and return it.
Definition at line 185 of file FragmentReceiverManager.hh.
|
inline |
Get the value of the End-Of-Data marker for this Receiver.
Definition at line 203 of file FragmentReceiverManager.hh.
|
inline |
Set the End-Of-Data marker value for this Receiver.
eod | Number of Receives expected for this receiver |
Definition at line 198 of file FragmentReceiverManager.hh.
|
inline |
Get the number of Fragments stored in this FragmentStoreElement.
Definition at line 209 of file FragmentReceiverManager.hh.