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

Integer comparison class with intervals. More...

#include <Compare.h>

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

Public Member Functions

 CompareIntervalInt (Int64 interval, Int64 start)
 Construct from the given interval values. More...
 
virtual ~CompareIntervalInt ()
 
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

Int64 itsInterval
 
Int64 itsStart
 

Detailed Description

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

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

Constructor & Destructor Documentation

template<typename T >
casacore::CompareIntervalInt< T >::CompareIntervalInt ( Int64  interval,
Int64  start 
)

Construct from the given interval values.

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

Member Function Documentation

template<typename T >
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.

Member Data Documentation

template<typename T >
Int64 casacore::CompareIntervalInt< T >::itsInterval
private

Definition at line 148 of file Compare.h.

template<typename T >
Int64 casacore::CompareIntervalInt< T >::itsStart
private

Definition at line 149 of file Compare.h.


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