Cheetah - SKA - PSS - Prototype Time Domain Search Pipeline
DmTimeSliceIterator.cpp
1 #include "cheetah/data/detail/DmTimeSliceIterator.h"
2 #include "cheetah/data/detail/DmTimeSlice.h"
3 #include "cheetah/data/detail/DmTimeDm.h"
4 
5 namespace ska {
6 namespace cheetah {
7 namespace data {
8 namespace detail {
9 
10 template <typename DmTimeSliceType>
12  std::shared_ptr<const DmTimeSliceType> parent)
13  : _current_dm_idx(current_dm_idx)
14  , _parent(parent)
15 {
16 }
17 
18 template <typename DmTimeSliceType>
20 {
21 }
22 
23 template <typename DmTimeSliceType>
25 {
26  return DmTimeDmType(_current_dm_idx, _parent);
27 }
28 
29 template <typename DmTimeSliceType>
31 {
32  ++_current_dm_idx;
33  return *this;
34 }
35 
36 template <typename DmTimeSliceType>
38 {
39  return _current_dm_idx != other._current_dm_idx;
40 }
41 
42 template <typename DmTimeSliceType>
44 {
45  return _current_dm_idx == other._current_dm_idx;
46 }
47 
48 } // namespace detail
49 } // namespace data
50 } // namespace cheetah
51 } // namespace ska
DmTimeSliceIterator & operator++()
Increment the iterator.
DmTimeSliceIterator(std::size_t current_dm_idx, std::shared_ptr< const DmTimeSliceType > parent)
Create a new instances.
Some limits and constants for FLDO.
Definition: Brdz.h:35
Class that wraps a single DM trial from a DmTime object.
Definition: DmTimeDm.h:47
DmTimeDmType operator*() const
Dereference the iterator.
bool operator==(DmTimeSliceIterator const &other)
Test if another DmTimeSliceIterator is the same as this one.
An iterator over a DmTimeSlice object.
Definition: DmTimeSlice.h:42
bool operator!=(DmTimeSliceIterator const &other)
Test if another DmTimeSliceIterator is different to this one.