|
DUNE-DAQ
DUNE Trigger and Data Acquisition software
|
C++ Representation of a DUNE TimeSlice, consisting of a TimeSliceHeader object and a vector of pointers to Fragment objects. More...
#include <TimeSlice.hpp>
Public Member Functions | |
| TimeSlice (timeslice_number_t timeslice_number, run_number_t run_number) | |
| Construct a TimeSlice, filling in some header fields. | |
| TimeSlice (TimeSliceHeader const &header) | |
| Construct a TimeSlice using the given TimeSliceHeader. | |
| TimeSliceHeader | get_header () const |
| Get a copy of the TimeSliceHeader struct. | |
| void | set_header (TimeSliceHeader header) |
| Set the TimeSliceHeader to the given TimeSliceHeader object. | |
| const std::vector< std::unique_ptr< Fragment > > & | get_fragments_ref () const |
| Get a handle to the Fragments. | |
| void | set_fragments (std::vector< std::unique_ptr< Fragment > > &&fragments) |
| Set the Fragments vector to the given vector of Fragments. | |
| void | add_fragment (std::unique_ptr< Fragment > &&fragment) |
| Add a Fragment pointer to the Fragments vector. | |
| void | set_element_id (SourceID source_id) |
| Set the SourceID for this TimeSlice. | |
| size_t | get_total_size_bytes () const |
| Get size of timeslice from underlying TimeSliceHeader and Fragments. | |
| size_t | get_sum_of_fragment_payload_sizes () const |
| Get the sum of the fragment payload sizes. | |
| TimeSlice (TimeSlice const &)=delete | |
| TimeSlices are not copy-constructible. | |
| TimeSlice & | operator= (TimeSlice const &)=delete |
| TimeSlices are not copy-assignable. | |
| TimeSlice (TimeSlice &&)=default | |
| Default TimeSlice move constructor. | |
| TimeSlice & | operator= (TimeSlice &&)=default |
| Default TimeSlice move assignment operator. | |
| ~TimeSlice ()=default | |
| TimeSlice default destructor. | |
Private Attributes | |
| TimeSliceHeader | m_header |
| TimeSliceHeader object. | |
| std::vector< std::unique_ptr< Fragment > > | m_fragments |
| Vector of unique_ptrs to Fragment objects. | |
C++ Representation of a DUNE TimeSlice, consisting of a TimeSliceHeader object and a vector of pointers to Fragment objects.
Definition at line 26 of file TimeSlice.hpp.
|
inlineexplicit |
Construct a TimeSlice, filling in some header fields.
Definition at line 115 of file TimeSlice.hpp.
|
inlineexplicit |
Construct a TimeSlice using the given TimeSliceHeader.
| header | TimeSliceHeader to copy into the TimeSlice |
Definition at line 123 of file TimeSlice.hpp.
|
delete |
TimeSlices are not copy-constructible.
|
default |
Default TimeSlice move constructor.
|
default |
TimeSlice default destructor.
|
inline |
Add a Fragment pointer to the Fragments vector.
| fragment | Fragment to add |
Definition at line 67 of file TimeSlice.hpp.
|
inline |
Get a handle to the Fragments.
Definition at line 55 of file TimeSlice.hpp.
|
inline |
Get a copy of the TimeSliceHeader struct.
Definition at line 44 of file TimeSlice.hpp.
|
inline |
Get the sum of the fragment payload sizes.
Definition at line 91 of file TimeSlice.hpp.
|
inline |
Get size of timeslice from underlying TimeSliceHeader and Fragments.
Definition at line 78 of file TimeSlice.hpp.
Default TimeSlice move assignment operator.
TimeSlices are not copy-assignable.
|
inline |
|
inline |
Set the Fragments vector to the given vector of Fragments.
| fragments | Fragments vector to use |
Definition at line 61 of file TimeSlice.hpp.
|
inline |
Set the TimeSliceHeader to the given TimeSliceHeader object.
| header | new TimeSliceHeader to use |
Definition at line 49 of file TimeSlice.hpp.
|
private |
Vector of unique_ptrs to Fragment objects.
Definition at line 110 of file TimeSlice.hpp.
|
private |
TimeSliceHeader object.
Definition at line 109 of file TimeSlice.hpp.