casacore
Public Member Functions | Private Attributes | List of all members
casacore::MSInterval Class Reference

More...

#include <MSIter.h>

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

Synopsis

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

Definition at line 57 of file MSIter.h.

Constructor & Destructor Documentation

◆ MSInterval()

casacore::MSInterval::MSInterval ( Double  interval)
inlineexplicit

Definition at line 60 of file MSIter.h.

◆ ~MSInterval()

virtual casacore::MSInterval::~MSInterval ( )
inlinevirtual

Definition at line 61 of file MSIter.h.

Member Function Documentation

◆ comp()

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

Compare two objects, and return.

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

Implements casacore::BaseCompare.

◆ getInterval()

Double casacore::MSInterval::getInterval ( ) const
inline

Definition at line 65 of file MSIter.h.

References interval_p.

◆ getOffset()

Double casacore::MSInterval::getOffset ( ) const
inline

Definition at line 63 of file MSIter.h.

References offset_p.

◆ setInterval()

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

Definition at line 66 of file MSIter.h.

References interval_p.

◆ setOffset()

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

Definition at line 64 of file MSIter.h.

References offset_p.

Member Data Documentation

◆ interval_p

Double casacore::MSInterval::interval_p
private

Definition at line 68 of file MSIter.h.

Referenced by getInterval(), and setInterval().

◆ offset_p

Double casacore::MSInterval::offset_p
mutableprivate

Definition at line 69 of file MSIter.h.

Referenced by getOffset(), and setOffset().


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