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;
212 virtual int comp(
const void * obj1,
const void * obj2)
const;
218 #ifndef CASACORE_NO_AUTO_TEMPLATES
219 #include <casacore/casa/Utilities/Compare.tcc>
220 #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.
Comparison class that is always true.
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.
virtual ~CompareAlwaysTrue()
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
Comparison function that gives always true.
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.