artdaq  v2_02_03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Pages
Public Member Functions | List of all members
artdaq::FragmentStoreElement Class Reference

This class contains tracking information for all Fragment objects which have been received from a specific source. More...

#include <artdaq/DAQrate/DataReceiverManager.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...
 

Detailed Description

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 148 of file DataReceiverManager.hh.

Member Function Documentation

void artdaq::FragmentStoreElement::emplace_back ( FragmentPtr &&  frag)
inline

Add a Fragment to the end of the FragmentStoreElement.

Parameters
fragFragment to add

Definition at line 184 of file DataReceiverManager.hh.

void artdaq::FragmentStoreElement::emplace_front ( FragmentPtr &&  frag)
inline

Add a Fragment to the front of the FragmentStoreElement.

Parameters
fragFragment to add

Definition at line 173 of file DataReceiverManager.hh.

bool artdaq::FragmentStoreElement::empty ( ) const
inline

Are any Fragment objects contained in this FragmentStoreElement?

Returns
Whether any Fragment objects are contained in this FragmentStoreElement

Definition at line 164 of file DataReceiverManager.hh.

FragmentPtr artdaq::FragmentStoreElement::front ( )
inline

Remove the first Fragment from the FragmentStoreElement and return it.

Returns
The first Fragment in the FragmentStoreElement

Definition at line 195 of file DataReceiverManager.hh.


The documentation for this class was generated from the following file: