28 #ifndef CASA_COMPARE_H
29 #define CASA_COMPARE_H
50 typedef int ObjCompareFunc (
const void*,
const void*);
76 virtual int comp (
const void* obj1,
const void* obj2)
const = 0;
114 static int compare (
const void* obj1,
const void* obj2);
115 virtual int comp (
const void* obj1,
const void* obj2)
const;
145 virtual int comp(
const void * obj1,
const void * obj2)
const;
175 virtual int comp(
const void * obj1,
const void * obj2)
const;
197 virtual int comp(
const void * obj1,
const void * obj2)
const;
203 #ifndef CASACORE_NO_AUTO_TEMPLATES
204 #include <casacore/casa/Utilities/Compare.tcc>
205 #endif //# CASACORE_NO_AUTO_TEMPLATES
virtual int comp(const void *obj1, const void *obj2) const
Compare the interval the left and right value belong to.
long long Int64
Define the extra non-standard types used by Casacore (like proposed uSize, Size)
virtual DataType dataType() const
Get the data type of the sort comparison.
virtual int comp(const void *obj1, const void *obj2) const =0
Compare two objects, and return.
Case-insensitive string comparison class.
Real comparison class with intervals.
static int compare(const void *obj1, const void *obj2)
Compare two objects, and return.
CompareIntervalReal(Double interval, Double start)
Construct from the given interval values.
virtual ~CompareIntervalInt()
virtual DataType dataType() const
Get the data type of a straight-forward sort comparison in ObjCompare.
Integer comparison class with intervals.
virtual int comp(const void *obj1, const void *obj2) const
Compare the left and right string value in a case-insensitive way.
abstract base class for comparing two objects
virtual int comp(const void *obj1, const void *obj2) const
Compare two objects, and return.
virtual ~CompareIntervalReal()
virtual int comp(const void *obj1, const void *obj2) const
Compare the interval the left and right value belong to.
CompareIntervalInt(Int64 interval, Int64 start)
Construct from the given interval values.
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.