1 #ifndef SKA_CHEETAH_DATA_DMTIMEITERATOR_H 2 #define SKA_CHEETAH_DATA_DMTIMEITERATOR_H 4 #include "cheetah/data/DmTime.h" 5 #include "cheetah/data/detail/DmTimeSlice.h" 13 template <
typename DmTrialsType>
27 template <
typename DmTimeType>
31 typedef typename DmTimeType::SliceType SliceType;
42 std::size_t number_dms_per_slice,
43 std::shared_ptr<DmTimeType> parent);
60 std::shared_ptr<SliceType>
operator*()
const;
99 std::size_t _current_dm_idx;
100 std::size_t _number_dms_per_slice;
101 std::shared_ptr<DmTimeType> _parent;
109 #include "cheetah/data/detail/DmTimeIterator.cpp" 111 #endif // SKA_CHEETAH_DATA_DMTIMEITERATOR_H DmTimeIterator & operator++()
Increment the iterator.
Provides an iterator over a DmTime in slices of DMs.
bool operator!=(DmTimeIterator const &other) const
Test if another DmTimeIterator is different to this one.
bool operator<(DmTimeIterator const &other) const
Test if another DmTimeIterator is the before this one.
Some limits and constants for FLDO.
bool operator==(DmTimeIterator const &other) const
Test if another DmTimeIterator is the same as this one.
bool operator>(DmTimeIterator const &other) const
Test if another DmTimeIterator is the after this one.
DmTimeIterator(std::size_t current_dm_idx, std::size_t number_dms_per_slice, std::shared_ptr< DmTimeType > parent)
Create a new instances.
A wrapper class for a list of DmTime instances.
std::shared_ptr< SliceType > operator*() const
Dereference the iterator.