Cheetah - SKA - PSS - Prototype Time Domain Search Pipeline
|
Public Types | |
typedef bool | DataType |
typedef std::vector< bool >::iterator | Iterator |
typedef std::vector< bool >::const_iterator | ConstIterator |
typedef DataSequence2DPartialRange< Cpu, bool > | PartialRange |
typedef DataSequence2DConstPartialRange< Cpu, bool > | ConstPartialRange |
typedef DataSequence2DPartialIterator< Cpu, bool > | PartialIterator |
typedef DataSequence2DPartialIterator< Cpu, const bool > | ConstPartialIterator |
Public Member Functions | |
DataSequence2D () | |
Create a zero-sized DataSequence2D. | |
DataSequence2D (std::size_t fast_axis_length, std::size_t slow_axis_length) | |
Create a pre-sized DataSequence2D filled with the default constructor of T. More... | |
DataSequence2D (std::size_t fast_axis_length, std::size_t slow_axis_length, const bool &fill) | |
Create a pre-sized DataSequence2D, filled with copies of a provided T. More... | |
~DataSequence2D () | |
Free memory associated with DataSequence2D. | |
std::size_t | fast_axis_length () const |
Get the current fast_axis_length. | |
std::size_t | slow_axis_length () const |
Get the current slow_axis_length. | |
std::size_t | size () const |
the number fo elements in the data | |
void | resize (std::size_t fast_axis_length, std::size_t slow_axis_length, const bool &fill) |
Destructive resize of underlying data. Fill with copies. More... | |
void | resize (std::size_t fast_axis_length, std::size_t slow_axis_length) |
Destructive resize of underlying data. More... | |
Iterator | begin () |
get the default Iterator More... | |
ConstIterator | begin () const |
get the default Iterator More... | |
ConstIterator | cbegin () const |
get the default Iterator More... | |
Iterator | end () |
get the default end Iterator More... | |
ConstIterator | end () const |
get the default end Iterator More... | |
ConstIterator | cend () const |
get the default end Iterator More... | |
PartialRange | slice (std::size_t fbegin, std::size_t fend, std::size_t sbegin, std::size_t send) |
Return an Iterator to a slice of the datasequence. The partial Iterator returned will iterate only over the range specified, from fbegin to fend on the fast axis and from sbegin to send on the slow axis. Otherwise the Iterator behaves as if it were a FastIterator over a smaller DataSequence2D of length (fend-fbegin) by (send-sbegin) More... | |
ConstPartialRange | slice (std::size_t fbegin, std::size_t fend, std::size_t sbegin, std::size_t send) const |
Definition at line 33 of file DataSequence2D_bool.cpp.
ska::cheetah::data::DataSequence2D< Cpu, bool >::DataSequence2D | ( | std::size_t | fast_axis_length, |
std::size_t | slow_axis_length | ||
) |
Create a pre-sized DataSequence2D filled with the default constructor of T.
fast_axis_length | the length of the fast axis |
slow_axis_length | the length of the slow axis. |
Definition at line 35 of file DataSequence2D_bool.cpp.
ska::cheetah::data::DataSequence2D< Cpu, bool >::DataSequence2D | ( | std::size_t | fast_axis_length, |
std::size_t | slow_axis_length, | ||
const bool & | fill | ||
) |
Create a pre-sized DataSequence2D, filled with copies of a provided T.
fast_axis_length | the length of the fast axis |
slow_axis_length | the length of the slow axis. |
fill | object to be copied. |
Definition at line 43 of file DataSequence2D_bool.cpp.
DataSequence2D< Cpu, bool >::Iterator ska::cheetah::data::DataSequence2D< Cpu, bool >::begin | ( | ) |
get the default Iterator
iterates over fast axis first, then slow axis
Definition at line 67 of file DataSequence2D_bool.cpp.
DataSequence2D< Cpu, bool >::ConstIterator ska::cheetah::data::DataSequence2D< Cpu, bool >::begin | ( | ) | const |
get the default Iterator
iterates over fast axis first, then slow axis
Definition at line 71 of file DataSequence2D_bool.cpp.
DataSequence2D< Cpu, bool >::ConstIterator ska::cheetah::data::DataSequence2D< Cpu, bool >::cbegin | ( | ) | const |
get the default Iterator
iterates over fast axis first, then slow axis
Definition at line 75 of file DataSequence2D_bool.cpp.
DataSequence2D< Cpu, bool >::ConstIterator ska::cheetah::data::DataSequence2D< Cpu, bool >::cend | ( | ) | const |
get the default end Iterator
iterates over fast axis first, then slow axis
Definition at line 88 of file DataSequence2D_bool.cpp.
DataSequence2D< Cpu, bool >::Iterator ska::cheetah::data::DataSequence2D< Cpu, bool >::end | ( | ) |
get the default end Iterator
iterates over fast axis first, then slow axis
Definition at line 80 of file DataSequence2D_bool.cpp.
DataSequence2D< Cpu, bool >::ConstIterator ska::cheetah::data::DataSequence2D< Cpu, bool >::end | ( | ) | const |
get the default end Iterator
iterates over fast axis first, then slow axis
Definition at line 84 of file DataSequence2D_bool.cpp.
void ska::cheetah::data::DataSequence2D< Cpu, bool >::resize | ( | std::size_t | fast_axis_length, |
std::size_t | slow_axis_length, | ||
const bool & | fill | ||
) |
Destructive resize of underlying data. Fill with copies.
fast_axis_length | new fast axis length |
slow_axis_length | new slow axis length |
fill | Value to copy to fill underlying array. |
Definition at line 52 of file DataSequence2D_bool.cpp.
void ska::cheetah::data::DataSequence2D< Cpu, bool >::resize | ( | std::size_t | fast_axis_length, |
std::size_t | slow_axis_length | ||
) |
Destructive resize of underlying data.
the contents of the memory are not defined after a call to this method.
fast_axis_length | new fast axis length |
slow_axis_length | new slow axis length |
fill | Value to copy to fill underlying array. |
Definition at line 60 of file DataSequence2D_bool.cpp.
DataSequence2D< Cpu, bool >::PartialRange ska::cheetah::data::DataSequence2D< Cpu, bool >::slice | ( | std::size_t | fbegin, |
std::size_t | fend, | ||
std::size_t | sbegin, | ||
std::size_t | send | ||
) |
Return an Iterator to a slice of the datasequence. The partial Iterator returned will iterate only over the range specified, from fbegin to fend on the fast axis and from sbegin to send on the slow axis. Otherwise the Iterator behaves as if it were a FastIterator over a smaller DataSequence2D of length (fend-fbegin) by (send-sbegin)
Definition at line 92 of file DataSequence2D_bool.cpp.