casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Private Member Functions | Private Attributes
rowsInAScanbyTimeIntervalFunctor< T > Struct Template Reference

#include <asdm2MSGeneric.h>

List of all members.

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

Detailed Description

template<typename T>
struct rowsInAScanbyTimeIntervalFunctor< T >

Definition at line 69 of file asdm2MSGeneric.h.


Constructor & Destructor Documentation

template<typename T >
rowsInAScanbyTimeIntervalFunctor< T >::rowsInAScanbyTimeIntervalFunctor ( const std::vector< asdm::ScanRow * > &  scans) [inline]

Definition at line 104 of file asdm2MSGeneric.h.


Member Function Documentation

template<typename T >
const std::vector<T *>& rowsInAScanbyTimeIntervalFunctor< T >::operator() ( const std::vector< T * > &  rows,
bool  ignoreTime = false 
) [inline]
template<typename T >
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.

Parameters:
rowa pointer to an object of type T.
aconst reference to a vector of pointers of ScanRow.
returna bool.

Definition at line 86 of file asdm2MSGeneric.h.

References casa::max(), casa::min(), and rowsInAScanbyTimeIntervalFunctor< T >::result.

Referenced by rowsInAScanbyTimeIntervalFunctor< T >::operator()().


Member Data Documentation

template<typename T >
vector<T *> rowsInAScanbyTimeIntervalFunctor< T >::result [private]
template<typename T >
const vector<ScanRow *>& rowsInAScanbyTimeIntervalFunctor< T >::scans [private]

Definition at line 71 of file asdm2MSGeneric.h.

Referenced by rowsInAScanbyTimeIntervalFunctor< T >::operator()().


The documentation for this struct was generated from the following file: