1 #include "cheetah/data/detail/DmTimeIterator.h" 8 template <
typename DmTimeType>
10 std::size_t number_dms_per_slice, std::shared_ptr<DmTimeType> parent)
11 : _current_dm_idx(current_dm_idx)
12 , _number_dms_per_slice(number_dms_per_slice)
17 template <
typename DmTimeType>
22 template <
typename DmTimeType>
25 _current_dm_idx+=_number_dms_per_slice;
29 template <
typename DmTimeType>
32 return SliceType::make_shared(_current_dm_idx, _number_dms_per_slice, _parent);
35 template <
typename DmTimeType>
38 return _current_dm_idx != other._current_dm_idx;
41 template <
typename DmTimeType>
44 return _current_dm_idx == other._current_dm_idx;
47 template <
typename DmTimeType>
50 return _current_dm_idx < other._current_dm_idx;
53 template <
typename DmTimeType>
56 return _current_dm_idx > other._current_dm_idx;
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.
std::shared_ptr< SliceType > operator*() const
Dereference the iterator.