C++ Representation of a DUNE TimeSlice, consisting of a TimeSliceHeader object and a vector of pointers to Fragment objects.
More...
#include <TimeSlice.hpp>
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.
◆ TimeSlice() [1/4]
◆ TimeSlice() [2/4]
dunedaq::daqdataformats::TimeSlice::TimeSlice |
( |
TimeSliceHeader const & | header | ) |
|
|
inlineexplicit |
◆ ~TimeSlice()
virtual dunedaq::daqdataformats::TimeSlice::~TimeSlice |
( |
| ) |
|
|
virtualdefault |
◆ TimeSlice() [3/4]
dunedaq::daqdataformats::TimeSlice::TimeSlice |
( |
TimeSlice const & | | ) |
|
|
delete |
TimeSlices are not copy-constructible.
◆ TimeSlice() [4/4]
dunedaq::daqdataformats::TimeSlice::TimeSlice |
( |
TimeSlice && | | ) |
|
|
default |
◆ add_fragment()
void dunedaq::daqdataformats::TimeSlice::add_fragment |
( |
std::unique_ptr< Fragment > && | fragment | ) |
|
|
inline |
◆ get_fragments_ref()
const std::vector< std::unique_ptr< Fragment > > & dunedaq::daqdataformats::TimeSlice::get_fragments_ref |
( |
| ) |
const |
|
inline |
Get a handle to the Fragments.
- Returns
- A reference to the Fragments vector
Definition at line 62 of file TimeSlice.hpp.
◆ get_header()
◆ get_sum_of_fragment_payload_sizes()
size_t dunedaq::daqdataformats::TimeSlice::get_sum_of_fragment_payload_sizes |
( |
| ) |
const |
|
inline |
Get the sum of the fragment payload sizes.
Definition at line 98 of file TimeSlice.hpp.
99 {
100 size_t total_size = 0;
101
103 total_size += frag_ptr->get_data_size();
104
105 return total_size;
106 }
◆ get_total_size_bytes()
size_t dunedaq::daqdataformats::TimeSlice::get_total_size_bytes |
( |
| ) |
const |
|
inline |
Get size of timeslice from underlying TimeSliceHeader and Fragments.
Definition at line 85 of file TimeSlice.hpp.
86 {
88
90 total_size += frag_ptr->get_size();
91
92 return total_size;
93 }
◆ operator=() [1/2]
◆ operator=() [2/2]
TimeSlices are not copy-assignable.
◆ set_element_id()
void dunedaq::daqdataformats::TimeSlice::set_element_id |
( |
SourceID | source_id | ) |
|
|
inline |
◆ set_fragments()
void dunedaq::daqdataformats::TimeSlice::set_fragments |
( |
std::vector< std::unique_ptr< Fragment > > && | fragments | ) |
|
|
inline |
Set the Fragments vector to the given vector of Fragments.
- Parameters
-
fragments | Fragments vector to use |
Definition at line 68 of file TimeSlice.hpp.
◆ set_header()
void dunedaq::daqdataformats::TimeSlice::set_header |
( |
TimeSliceHeader | header | ) |
|
|
inline |
◆ m_fragments
std::vector<std::unique_ptr<Fragment> > dunedaq::daqdataformats::TimeSlice::m_fragments |
|
private |
◆ m_header
The documentation for this class was generated from the following file:
- /github/workspace/dunedaq/sourcecode/daqdataformats/include/daqdataformats/TimeSlice.hpp