casacore::MSInterval Class Reference

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

#include <MSIter.h>

Inheritance diagram for casacore::MSInterval:
casacore::BaseCompare

List of all members.

Public Member Functions

 MSInterval (Double interval)
virtual ~MSInterval ()
virtual int comp (const void *obj1, const void *obj2) const
 Compare two objects, and return.
Double getOffset ()
void setOffset (Double offset)
Double getInterval ()
void setInterval (Double interval)

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 58 of file MSIter.h.


Constructor & Destructor Documentation

casacore::MSInterval::MSInterval ( Double  interval  )  [inline, explicit]

Definition at line 61 of file MSIter.h.

virtual casacore::MSInterval::~MSInterval (  )  [inline, virtual]

Definition at line 62 of file MSIter.h.


Member Function Documentation

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.

Double casacore::MSInterval::getInterval (  )  [inline]

Definition at line 66 of file MSIter.h.

References interval_p.

Double casacore::MSInterval::getOffset (  )  [inline]

Definition at line 64 of file MSIter.h.

References offset_p.

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

Definition at line 67 of file MSIter.h.

void casacore::MSInterval::setOffset ( Double  offset  )  [inline]

Definition at line 65 of file MSIter.h.

References interval_p.


Member Data Documentation

Definition at line 69 of file MSIter.h.

Referenced by getInterval(), and setOffset().

Definition at line 70 of file MSIter.h.

Referenced by getOffset().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 31 Aug 2016 for casa by  doxygen 1.6.1