casa
5.7.0-16
|
abstract base class for comparing two objects More...
#include <Compare.h>
Public Member Functions | |
virtual | ~BaseCompare () |
virtual int | comp (const void *obj1, const void *obj2) const =0 |
Compare two objects, and return. More... | |
virtual DataType | dataType () const |
Get the data type of a straight-forward sort comparison in ObjCompare. More... | |
abstract base class for comparing two objects
Public interface
The abstract class BaseCompare<T>
is used for comparisons in sorting or iterating. One can derive a concrete comparison class from it.
|
inlinevirtual |
|
pure virtual |
Compare two objects, and return.
Implemented in casacore::CompareNoCase, casacore::CompareIntervalReal< T >, casacore::CompareIntervalInt< T >, casacore::ObjCompare< T >, casacore::MSInterval, and casa::vi::MSSmartInterval.
|
inlinevirtual |
Get the data type of a straight-forward sort comparison in ObjCompare.
It is used to test if a the faster GenSortIndirect can be used. By default it returns TpOther.
Reimplemented in casacore::ObjCompare< T >.