casa
5.7.0-16
|
Real comparison class with intervals. More...
#include <Compare.h>
Public Member Functions | |
CompareIntervalReal (Double interval, Double start) | |
Construct from the given interval values. More... | |
virtual | ~CompareIntervalReal () |
virtual int | comp (const void *obj1, const void *obj2) const |
Compare the interval the left and right value belong to. More... | |
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 | itsInterval |
Double | itsStart |
Real comparison class with intervals.
Public interface
This class is meant for comparison in the TableIterator class. It does not compare on the value itself, but compares intervals. In that way it is possible to iterate through a table in, for example, time chunks of N seconds. The start value X gives the start value of the base interval. Lower intervals are still possible. So the intervals will be..., X-2N:X-N, X-N:N, X:X+N, X+N:X+2N,...
casacore::CompareIntervalReal< T >::CompareIntervalReal | ( | Double | interval, |
Double | start | ||
) |
Construct from the given interval values.
|
virtual |
|
virtual |
Compare the interval the left and right value belong to.
Implements casacore::BaseCompare.
|
private |
|
private |