casacore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
casacore::CompareIntervalReal< T > Class Template Reference

Real comparison class with intervals. More...

#include <Compare.h>

Inheritance diagram for casacore::CompareIntervalReal< T >:
casacore::BaseCompare

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
 

Detailed Description

template<typename T>
class casacore::CompareIntervalReal< T >

Real comparison class with intervals.

Intended use:

Public interface

Review Status

Test programs:
tTableIter

Synopsis

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 166 of file Compare.h.

Constructor & Destructor Documentation

template<typename T >
casacore::CompareIntervalReal< T >::CompareIntervalReal ( Double  interval,
Double  start 
)

Construct from the given interval values.

template<typename T >
virtual casacore::CompareIntervalReal< T >::~CompareIntervalReal ( )
virtual

Member Function Documentation

template<typename T >
virtual int casacore::CompareIntervalReal< T >::comp ( const void *  obj1,
const void *  obj2 
) const
virtual

Compare the interval the left and right value belong to.

Implements casacore::BaseCompare.

Member Data Documentation

template<typename T >
Double casacore::CompareIntervalReal< T >::itsInterval
private

Definition at line 178 of file Compare.h.

template<typename T >
Double casacore::CompareIntervalReal< T >::itsStart
private

Definition at line 179 of file Compare.h.


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