casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
casa::vi::MSSmartInterval Class Reference

class ROMSColumns; class TableIterator; More...

#include <MSIter2.h>

Inheritance diagram for casa::vi::MSSmartInterval:
casacore::MSInterval casacore::BaseCompare

Public Member Functions

 MSSmartInterval (casacore::Double interval, casacore::Vector< casacore::Double > &timeboundaries)
 
virtual ~MSSmartInterval ()
 
virtual void setOffset (casacore::Double offset)
 
virtual int comp (const void *obj1, const void *obj2) const
 Compare two objects, and return. More...
 
- Public Member Functions inherited from casacore::MSInterval
 MSInterval (Double interval)
 
virtual ~MSInterval ()
 
Double getOffset () const
 
Double getInterval () const
 
void setInterval (Double interval)
 
- Public Member Functions inherited from casacore::BaseCompare
virtual ~BaseCompare ()
 
virtual DataType dataType () const
 Get the data type of a straight-forward sort comparison in ObjCompare. More...
 

Private Attributes

casacore::Double interval2_
 Local versions of MSInterval::interval_p,offset_p so we can avoid function calls and obj copies in comp() More...
 
casacore::Double offset2_
 
casacore::Vector
< casacore::Double
timeBounds_
 A list of enforced interval time boundaries (e.g., scan bounds). More...
 
int nBounds_
 
casacore::Bool zeroInterval_
 Is specified interval effectively zero? More...
 
casacore::Bool found_
 Utility variables used in comp. More...
 
int bidx_
 
double t1_
 
double t2_
 

Detailed Description

class ROMSColumns; class TableIterator;

Small helper class to specify an 'interval' comparison

Synopsis

Small helper class to specify an 'interval' comparison for table iteration by time interval.

Definition at line 49 of file MSIter2.h.

Constructor & Destructor Documentation

casa::vi::MSSmartInterval::MSSmartInterval ( casacore::Double  interval,
casacore::Vector< casacore::Double > &  timeboundaries 
)
explicit
virtual casa::vi::MSSmartInterval::~MSSmartInterval ( )
inlinevirtual

Definition at line 54 of file MSIter2.h.

Member Function Documentation

virtual int casa::vi::MSSmartInterval::comp ( const void *  obj1,
const void *  obj2 
) const
virtual

Compare two objects, and return.

  • -1 if obj1 < obj2;
  • 0 if obj1 == obj2;
  • 1 otherwise.

Reimplemented from casacore::MSInterval.

virtual void casa::vi::MSSmartInterval::setOffset ( casacore::Double  offset)
virtual

Reimplemented from casacore::MSInterval.

Member Data Documentation

int casa::vi::MSSmartInterval::bidx_
mutableprivate

Definition at line 80 of file MSIter2.h.

casacore::Bool casa::vi::MSSmartInterval::found_
mutableprivate

Utility variables used in comp.

Definition at line 79 of file MSIter2.h.

casacore::Double casa::vi::MSSmartInterval::interval2_
private

Local versions of MSInterval::interval_p,offset_p so we can avoid function calls and obj copies in comp()

Definition at line 63 of file MSIter2.h.

int casa::vi::MSSmartInterval::nBounds_
private

Definition at line 71 of file MSIter2.h.

casacore::Double casa::vi::MSSmartInterval::offset2_
mutableprivate

Definition at line 64 of file MSIter2.h.

double casa::vi::MSSmartInterval::t1_
mutableprivate

Definition at line 81 of file MSIter2.h.

double casa::vi::MSSmartInterval::t2_
mutableprivate

Definition at line 81 of file MSIter2.h.

casacore::Vector<casacore::Double> casa::vi::MSSmartInterval::timeBounds_
private

A list of enforced interval time boundaries (e.g., scan bounds).

the interval grid will be re-registered to each of the values in this Vector as supplied times cross them

Definition at line 70 of file MSIter2.h.

casacore::Bool casa::vi::MSSmartInterval::zeroInterval_
private

Is specified interval effectively zero?

Definition at line 75 of file MSIter2.h.


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