#include <asdm2MSGeneric.h>
Public Member Functions | |
| rowsInAScanbyTimeIntervalFunctor (const std::vector< asdm::ScanRow * > &scans) | |
| const std::vector< T * > & | operator() (const std::vector< T * > &rows, bool ignoreTime=false) |
Private Member Functions | |
| bool | timeIntervalIntersectsAScan (T *row, const std::vector< asdm::ScanRow * > &scans) |
| A function which returns true if and only there is at least one element in the vector 'scans' for which the time interval defined by its attributes startTime and endTime has a non empty intersection with the time interval defined by the 'timeInterval' attribute of the generic parameter of 'row' which is expected to have a method getTimeInterval which returns a TimeInterval object. | |
Private Attributes | |
| const vector< ScanRow * > & | scans |
| vector< T * > | result |
Definition at line 68 of file asdm2MSGeneric.h.
| rowsInAScanbyTimeIntervalFunctor< T >::rowsInAScanbyTimeIntervalFunctor | ( | const std::vector< asdm::ScanRow * > & | scans | ) | [inline] |
Definition at line 103 of file asdm2MSGeneric.h.
| const std::vector<T *>& rowsInAScanbyTimeIntervalFunctor< T >::operator() | ( | const std::vector< T * > & | rows, | |
| bool | ignoreTime = false | |||
| ) | [inline] |
Definition at line 104 of file asdm2MSGeneric.h.
References rowsInAScanbyTimeIntervalFunctor< T >::result, rowsInAScanbyTimeIntervalFunctor< T >::scans, and rowsInAScanbyTimeIntervalFunctor< T >::timeIntervalIntersectsAScan().
| bool rowsInAScanbyTimeIntervalFunctor< T >::timeIntervalIntersectsAScan | ( | T * | row, | |
| const std::vector< asdm::ScanRow * > & | scans | |||
| ) | [inline, private] |
A function which returns true if and only there is at least one element in the vector 'scans' for which the time interval defined by its attributes startTime and endTime has a non empty intersection with the time interval defined by the 'timeInterval' attribute of the generic parameter of 'row' which is expected to have a method getTimeInterval which returns a TimeInterval object.
| row | a pointer to an object of type T. | |
| a | const reference to a vector of pointers of ScanRow. | |
| return | a bool. |
Definition at line 85 of file asdm2MSGeneric.h.
References casacore::max(), casacore::min(), and rowsInAScanbyTimeIntervalFunctor< T >::result.
Referenced by rowsInAScanbyTimeIntervalFunctor< T >::operator()().
vector<T *> rowsInAScanbyTimeIntervalFunctor< T >::result [private] |
Definition at line 71 of file asdm2MSGeneric.h.
Referenced by rowsInAScanbyTimeIntervalFunctor< T >::operator()(), and rowsInAScanbyTimeIntervalFunctor< T >::timeIntervalIntersectsAScan().
const vector<ScanRow *>& rowsInAScanbyTimeIntervalFunctor< T >::scans [private] |
Definition at line 70 of file asdm2MSGeneric.h.
Referenced by rowsInAScanbyTimeIntervalFunctor< T >::operator()().
1.6.1