Cheetah - SKA - PSS - Prototype Time Domain Search Pipeline
|
A view into a series-like container. More...
#include <cheetah/data/SeriesSlice.h>
Public Member Functions | |
SeriesSlice (Iterator start_it, Iterator end_it) | |
Construct a new instance. More... | |
Iterator | begin () |
Return an iterator pointing to the start of the slice. | |
ConstIterator | begin () const |
ConstIterator | cbegin () const |
Iterator | end () |
Return an iterator pointing to the end of the slice. | |
ConstIterator | end () const |
ConstIterator | cend () const |
Reference | operator[] (std::size_t n) |
Return a reference to the nth element of the slice. More... | |
ConstReference | operator[] (std::size_t n) const |
std::size_t | size () const |
Return the number of elements in the slice. | |
Pointer | data () |
Return a pointer to the first element of the slice. | |
ConstPointer | data () const |
Protected Attributes | |
Iterator | _start_it |
Iterator | _end_it |
A view into a series-like container.
Definition at line 17 of file SeriesSlice.h.
ska::cheetah::data::SeriesSlice< SeriesType >::SeriesSlice | ( | Iterator | start_it, |
Iterator | end_it | ||
) |
Construct a new instance.
[in] | start_it | The start iterator |
[in] | end_it | The end iterator |
Definition at line 9 of file SeriesSlice.cpp.
SeriesSlice< SeriesType >::Reference ska::cheetah::data::SeriesSlice< SeriesType >::operator[] | ( | std::size_t | n | ) |
Return a reference to the nth element of the slice.
[in] | n | index of the element |
Definition at line 57 of file SeriesSlice.cpp.