artdaq_core
v3_04_09
|
The artdaq::ContainerFragment class represents a Fragment which contains other Fragments. More...
#include <artdaq-core/Data/ContainerFragment.hh>
Classes | |
struct | Metadata |
Contains the information necessary for retrieving Fragment objects from the ContainerFragment. More... | |
struct | MetadataV0 |
Contains the information necessary for retrieving Fragment objects from the ContainerFragment. More... | |
Public Member Functions | |
Metadata const * | UpgradeMetadata (MetadataV0 const *in) const |
ContainerFragment (Fragment const &f) | |
Metadata const * | metadata () const |
const getter function for the Metadata More... | |
Metadata::count_t | block_count () const |
Gets the number of fragments stored in the ContainerFragment. More... | |
Fragment::type_t | fragment_type () const |
Get the Fragment::type_t of stored Fragment objects. More... | |
bool | missing_data () const |
Gets the flag if the ContainerFragment knows that it is missing data. More... | |
void const * | dataBegin () const |
Gets the start of the data. More... | |
void const * | dataEnd () const |
Gets the last Fragment in the ContainerFragment. More... | |
FragmentPtr | at (size_t index) const |
Gets a specific Fragment from the ContainerFragment. More... | |
size_t | fragSize (size_t index) const |
Gets the size of the Fragment at the specified location in the ContainerFragment, in bytes. More... | |
FragmentPtr | operator[] (size_t index) const |
Alias to ContainerFragment::at() More... | |
size_t | fragmentIndex (size_t index) const |
Get the offset of a Fragment within the ContainerFragment. More... | |
size_t | lastFragmentIndex () const |
Returns the offset of the last Fragment in the ContainerFragment. More... | |
Static Public Attributes | |
static constexpr uint8_t | CURRENT_VERSION = 1 |
static constexpr size_t | CONTAINER_MAGIC = 0x00BADDEED5B1BEE5 |
Protected Member Functions | |
const size_t * | create_index_ () const |
void | reset_index_ptr_ () const |
const size_t * | get_index_ () const |
Static Protected Member Functions | |
static constexpr size_t | words_per_frag_word_ () |
Gets the ratio between the fundamental data storage type and the representation within the Fragment. More... | |
The artdaq::ContainerFragment class represents a Fragment which contains other Fragments.
Definition at line 20 of file ContainerFragment.hh.
|
inlineexplicit |
f | The Fragment object to use for data storage |
The constructor simply sets its const private member "artdaq_Fragment_" to refer to the artdaq::Fragment object
Definition at line 98 of file ContainerFragment.hh.
|
inline |
Gets a specific Fragment from the ContainerFragment.
index | The Fragment index to return |
cet::exception | if the index is out-of-range |
Definition at line 168 of file ContainerFragment.hh.
|
inline |
Gets the number of fragments stored in the ContainerFragment.
Definition at line 132 of file ContainerFragment.hh.
|
inline |
Gets the start of the data.
Definition at line 148 of file ContainerFragment.hh.
|
inline |
Gets the last Fragment in the ContainerFragment.
Definition at line 157 of file ContainerFragment.hh.
|
inline |
Get the Fragment::type_t of stored Fragment objects.
Definition at line 137 of file ContainerFragment.hh.
|
inline |
Get the offset of a Fragment within the ContainerFragment.
index | The Fragment index |
cet::exception | if the index is out-of-range |
Definition at line 213 of file ContainerFragment.hh.
|
inline |
Gets the size of the Fragment at the specified location in the ContainerFragment, in bytes.
index | The Fragment index |
cet::exception | if the index is out-of-range |
Definition at line 185 of file ContainerFragment.hh.
|
inline |
Returns the offset of the last Fragment in the ContainerFragment.
Definition at line 230 of file ContainerFragment.hh.
|
inline |
const getter function for the Metadata
Definition at line 116 of file ContainerFragment.hh.
|
inline |
Gets the flag if the ContainerFragment knows that it is missing data.
Definition at line 142 of file ContainerFragment.hh.
|
inline |
Alias to ContainerFragment::at()
index | The Fragment index to return |
cet::exception | if the index is out-of-range |
Definition at line 202 of file ContainerFragment.hh.
|
inlinestaticprotected |
Gets the ratio between the fundamental data storage type and the representation within the Fragment.
Definition at line 241 of file ContainerFragment.hh.