1 #ifndef SKA_CHEETAH_DATA_SERIESSLICE_H 2 #define SKA_CHEETAH_DATA_SERIESSLICE_H 16 template <
typename SeriesType>
20 typedef typename SeriesType::Iterator Iterator;
21 typedef typename SeriesType::ConstIterator ConstIterator;
22 typedef typename std::iterator_traits<Iterator>::pointer Pointer;
23 typedef typename std::iterator_traits<ConstIterator>::pointer ConstPointer;
24 typedef typename std::iterator_traits<Iterator>::reference Reference;
25 typedef typename std::iterator_traits<ConstIterator>::reference ConstReference;
26 typedef typename std::iterator_traits<Iterator>::value_type ValueType;
42 ConstIterator
begin()
const;
43 ConstIterator cbegin()
const;
49 ConstIterator
end()
const;
50 ConstIterator cend()
const;
58 ConstReference
operator[](std::size_t n)
const;
63 std::size_t
size()
const;
69 ConstPointer
data()
const;
81 #include "cheetah/data/detail/SeriesSlice.cpp" 83 #endif // SKA_CHEETAH_DATA_SERIESSLICE_H SeriesSlice(Iterator start_it, Iterator end_it)
Construct a new instance.
Reference operator[](std::size_t n)
Return a reference to the nth element of the slice.
Iterator end()
Return an iterator pointing to the end of the slice.
std::size_t size() const
Return the number of elements in the slice.
Iterator begin()
Return an iterator pointing to the start of the slice.
Some limits and constants for FLDO.
A view into a series-like container.
Pointer data()
Return a pointer to the first element of the slice.