Integer comparison class with intervals. More...
#include <Compare.h>
Public Member Functions | |
CompareIntervalInt (Int64 interval, Int64 start) | |
Construct from the given interval values. | |
virtual | ~CompareIntervalInt () |
virtual int | comp (const void *obj1, const void *obj2) const |
Compare the interval the left and right value belong to. | |
Private Attributes | |
Int64 | itsInterval |
Int64 | itsStart |
Integer 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, ..\.
Definition at line 136 of file Compare.h.
casacore::CompareIntervalInt< T >::CompareIntervalInt | ( | Int64 | interval, | |
Int64 | start | |||
) |
Construct from the given interval values.
virtual casacore::CompareIntervalInt< T >::~CompareIntervalInt | ( | ) | [virtual] |
virtual int casacore::CompareIntervalInt< T >::comp | ( | const void * | obj1, | |
const void * | obj2 | |||
) | const [virtual] |
Compare the interval the left and right value belong to.
Implements casacore::BaseCompare.
Int64 casacore::CompareIntervalInt< T >::itsInterval [private] |
Int64 casacore::CompareIntervalInt< T >::itsStart [private] |