24 #ifndef SKA_CHEETAH_DATA_DMTIMEBUFFERSLICE_H 25 #define SKA_CHEETAH_DATA_DMTIMEBUFFERSLICE_H 27 #include "cheetah/data/DmTime.h" 28 #include "cheetah/utils/Architectures.h" 30 #include "panda/DataChunk.h" 41 template <
typename DmTimeType>
53 template <
typename DmTimeType>
54 class DmTimeSlice:
public panda::DataChunk<DmTimeSlice<DmTimeType>>
60 typedef std::shared_ptr<DmTimeType> ParentType;
61 typedef typename DmTimeType::ContainerType ContainerType;
74 ConstIterator cbegin()
const;
82 ConstIterator cend()
const;
89 ContainerType
const&
blocks()
const;
92 friend panda::DataChunk<SelfType>;
103 DmTimeSlice(std::size_t start_dm_idx, std::size_t number_dms_per_slice,
108 std::size_t _start_dm_idx;
109 std::size_t _number_dms_per_slice;
118 #include "cheetah/data/detail/DmTimeSlice.cpp" 120 #endif // SKA_CHEETAH_DATA_DMTIMESLICE_H Class that wraps a subset of DMs from a DmTime object.
Some limits and constants for FLDO.
ContainerType const & blocks() const
Get a constant reference to the underlying list of DmTime shared pointers.
An iterator over a DmTimeSlice object.
Iterator begin()
Get an iterator poiting to the start of the slice.
Iterator end()
Get an iterator poiting to the end of the slice.