Public Member Functions | Protected Member Functions | Private Attributes | List of all members
dune::MilliSliceFragment Class Reference

#include <MilliSliceFragment.hh>

Inheritance diagram for dune::MilliSliceFragment:
dune::MilliSlice dune::MilliSliceFragmentWriter

Public Member Functions

 MilliSliceFragment (artdaq::Fragment const &frag)
 
- Public Member Functions inherited from dune::MilliSlice
 MilliSlice (uint8_t *address)
 
Header::millislice_size_t size () const
 
Header::microslice_count_t microSliceCount () const
 
std::unique_ptr< MicroSlicemicroSlice (uint32_t index) const
 

Protected Member Functions

Header const * header_ () const
 
uint8_t * data_ (int index) const
 
- Protected Member Functions inherited from dune::MilliSlice
Header const * header_ () const
 
uint8_t * data_ (int index) const
 

Private Attributes

artdaq::Fragment const & artdaq_fragment_
 

Additional Inherited Members

- Protected Attributes inherited from dune::MilliSlice
uint8_t * buffer_
 

Detailed Description

Definition at line 12 of file MilliSliceFragment.hh.

Constructor & Destructor Documentation

dune::MilliSliceFragment::MilliSliceFragment ( artdaq::Fragment const &  frag)

Definition at line 4 of file MilliSliceFragment.cc.

4  :
5  MilliSlice(reinterpret_cast<uint8_t*>(const_cast<artdaq::Fragment::byte_t*>(frag.dataBeginBytes()))),
6  artdaq_fragment_(frag)
7 {
8 }
artdaq::Fragment const & artdaq_fragment_
MilliSlice(uint8_t *address)
Definition: MilliSlice.cc:3

Member Function Documentation

uint8_t * dune::MilliSliceFragment::data_ ( int  index) const
protected

Definition at line 15 of file MilliSliceFragment.cc.

16 {
17  uint8_t* ms_ptr = reinterpret_cast<uint8_t*>(const_cast<artdaq::Fragment::byte_t*>(artdaq_fragment_.dataBeginBytes()))
18  + sizeof(Header);
19  for (int idx = 0; idx < index; ++idx) {
20  MicroSlice tmp_ms(ms_ptr);
21  ms_ptr += tmp_ms.size();
22  }
23  return ms_ptr;
24 }
artdaq::Fragment const & artdaq_fragment_
dune::MilliSliceFragment::Header const * dune::MilliSliceFragment::header_ ( ) const
protected

Definition at line 10 of file MilliSliceFragment.cc.

11 {
12  return reinterpret_cast<Header const*>(artdaq_fragment_.dataBeginBytes());
13 }
artdaq::Fragment const & artdaq_fragment_

Member Data Documentation

artdaq::Fragment const& dune::MilliSliceFragment::artdaq_fragment_
private

Definition at line 30 of file MilliSliceFragment.hh.


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