casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Private Attributes
casa::MSInterval Class Reference

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

#include <MSIter.h>

Inheritance diagram for casa::MSInterval:
casa::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 57 of file MSIter.h.


Constructor & Destructor Documentation

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

Definition at line 60 of file MSIter.h.

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

Definition at line 61 of file MSIter.h.


Member Function Documentation

virtual int casa::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 casa::BaseCompare.

Definition at line 65 of file MSIter.h.

References interval_p.

Definition at line 63 of file MSIter.h.

References offset_p.

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

Definition at line 66 of file MSIter.h.

References interval_p.

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

Definition at line 64 of file MSIter.h.

References offset_p.


Member Data Documentation

Definition at line 68 of file MSIter.h.

Referenced by getInterval(), and setInterval().

Double casa::MSInterval::offset_p [mutable, private]

Definition at line 69 of file MSIter.h.

Referenced by getOffset(), and setOffset().


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