casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
rowsInAScanbyTimeIntervalFunctor< T > Struct Template Reference

#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. More...
 

Private Attributes

const std::vector
< asdm::ScanRow * > & 
scans
 
std::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 
)
inlineprivate

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 max, min, and rowsInAScanbyTimeIntervalFunctor< T >::result.

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

Member Data Documentation

template<typename T >
std::vector<T *> rowsInAScanbyTimeIntervalFunctor< T >::result
private
template<typename T >
const std::vector<asdm::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: