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
casacore::MSInterval Class Reference

Small helper class to specify an 'interval' comparison. More...

#include <MSIter.h>

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

Public Member Functions

 MSInterval (Double interval)
virtual ~MSInterval ()
virtual int comp (const void *obj1, const void *obj2) const
 Compare two objects, and return. More...
Double getOffset () const
virtual void setOffset (Double offset)
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

Double interval_p
Double offset_p

Detailed Description

Small helper class to specify an 'interval' comparison.


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

Definition at line 58 of file MSIter.h.

Constructor & Destructor Documentation

casacore::MSInterval::MSInterval ( Double  interval)

Definition at line 61 of file MSIter.h.

virtual casacore::MSInterval::~MSInterval ( )

Definition at line 62 of file MSIter.h.

Member Function Documentation

virtual int casacore::MSInterval::comp ( const void *  obj1,
const void *  obj2 
) const

Compare two objects, and return.

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

Implements casacore::BaseCompare.

Reimplemented in casa::vi::MSSmartInterval.

Double casacore::MSInterval::getInterval ( ) const

Definition at line 66 of file MSIter.h.

References interval_p.

Double casacore::MSInterval::getOffset ( ) const

Definition at line 64 of file MSIter.h.

References offset_p.

void casacore::MSInterval::setInterval ( Double  interval)

Definition at line 67 of file MSIter.h.

virtual void casacore::MSInterval::setOffset ( Double  offset)

Reimplemented in casa::vi::MSSmartInterval.

Definition at line 65 of file MSIter.h.

References interval_p.

Member Data Documentation

Double casacore::MSInterval::interval_p

Definition at line 69 of file MSIter.h.

Referenced by getInterval(), and setOffset().

Double casacore::MSInterval::offset_p

Definition at line 70 of file MSIter.h.

Referenced by getOffset().

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