Cheetah - SKA - PSS - Prototype Time Domain Search Pipeline
|
Iterator over DataSequence2D types, over "fast" axis. CPU specific type. More...
#include <cheetah/data/DataSequence2DFastIterator.h>
Public Types | |
typedef std::iterator_traits< SelfType >::pointer | PtrType |
typedef std::iterator_traits< SelfType >::reference | RefType |
typedef std::iterator_traits< SelfType >::difference_type | DiffType |
Public Member Functions | |
DataSequence2DFastIteratorBase (const DataSequence2D< Cpu, typename std::remove_cv< Type >::type > &data_ptr, std::size_t slow_offset=0) | |
Create an iterator. More... | |
DataSequence2DFastIteratorBase (DataSequence2D< Cpu, typename std::remove_cv< Type >::type > &data_ptr, std::size_t slow_offset=0) | |
DataSequence2DFastIteratorBase () | |
default constructor. Required by random_access_iterator_tag | |
DataSequence2DFastIteratorBase (const DataSequence2DFastIteratorBase< Type, DerivedType > ©) | |
copy constructor. Required by random_access_iterator_tag. | |
~DataSequence2DFastIteratorBase () | |
Destroy the iterator. | |
virtual PtrType | operator-> () const |
dereference operators More... | |
virtual RefType | operator* () const |
dereference operators | |
DerivedType & | operator++ () |
pre-increment operator. More... | |
DerivedType | operator++ (int) |
post-increment the iterator to the next element in the data sequence More... | |
DerivedType & | operator-- () |
Decriment. | |
DerivedType | operator-- (int) |
Decriment. | |
DerivedType & | operator+= (DiffType off) |
Add-Asignment. | |
DerivedType & | operator-= (DiffType off) |
Subtract-asignment. | |
DerivedType | operator+ (DiffType off) const |
DerivedType | operator- (DiffType off) const |
DiffType | operator- (const SelfType &right) const |
bool | operator< (const SelfType &right) const |
bool | operator> (const SelfType &right) const |
bool | operator<= (const SelfType &right) const |
bool | operator>= (const SelfType &right) const |
RefType | operator[] (DiffType off) const |
Offset dereference. | |
bool | operator== (SelfType const &) const |
return true if it is the same data and offset | |
bool | operator!= (SelfType const &) const |
return true if it has neither the same data or offset | |
Protected Member Functions | |
std::size_t | index () |
Protected Attributes | |
const DataSequence2D< Cpu, typename std::remove_cv< Type >::type > * | _data |
std::size_t | _offset =0 |
Type * | _raw |
Iterator over DataSequence2D types, over "fast" axis. CPU specific type.
Type | The datatype stored in the DataSequence2D. |
Definition at line 53 of file DataSequence2DFastIterator.h.
|
explicit |
Create an iterator.
Iterator starts at the top of the "slow" axis given by slowOffset.
Definition at line 61 of file DataSequence2DFastIterator.cpp.
DerivedType ska::cheetah::data::DataSequence2DFastIteratorBase< Type, DerivedType >::operator+ | ( | DiffType | off | ) | const |
Add offset
Definition at line 127 of file DataSequence2DFastIterator.cpp.
DerivedType & ska::cheetah::data::DataSequence2DFastIteratorBase< Type, DerivedType >::operator++ | ( | ) |
pre-increment operator.
at the end of the sequence will contain nullptr. Unlike the pot-increment operator, no copy is made.
Definition at line 88 of file DataSequence2DFastIterator.cpp.
DerivedType ska::cheetah::data::DataSequence2DFastIteratorBase< Type, DerivedType >::operator++ | ( | int | ) |
post-increment the iterator to the next element in the data sequence
Definition at line 95 of file DataSequence2DFastIterator.cpp.
DerivedType ska::cheetah::data::DataSequence2DFastIteratorBase< Type, DerivedType >::operator- | ( | DiffType | off | ) | const |
Subtract offset
DataSequence2DFastIteratorBase< Type, DerivedType >::DiffType ska::cheetah::data::DataSequence2DFastIteratorBase< Type, DerivedType >::operator- | ( | const SelfType & | right | ) | const |
Subtract iterator
Definition at line 143 of file DataSequence2DFastIterator.cpp.
|
virtual |
dereference operators
return the actual data currently referenced by the iterator
Reimplemented in ska::cheetah::data::DataSequence2DPartialIterator< Cpu, Type >.
Definition at line 74 of file DataSequence2DFastIterator.cpp.
bool ska::cheetah::data::DataSequence2DFastIteratorBase< Type, DerivedType >::operator< | ( | const SelfType & | right | ) | const |
less than
Definition at line 149 of file DataSequence2DFastIterator.cpp.
bool ska::cheetah::data::DataSequence2DFastIteratorBase< Type, DerivedType >::operator<= | ( | const SelfType & | right | ) | const |
Less than or Equal.
Definition at line 161 of file DataSequence2DFastIterator.cpp.
bool ska::cheetah::data::DataSequence2DFastIteratorBase< Type, DerivedType >::operator> | ( | const SelfType & | right | ) | const |
Greater Than
Definition at line 155 of file DataSequence2DFastIterator.cpp.
bool ska::cheetah::data::DataSequence2DFastIteratorBase< Type, DerivedType >::operator>= | ( | const SelfType & | right | ) | const |
Greater or Equal
Definition at line 167 of file DataSequence2DFastIterator.cpp.