casa
$Rev:20696$
|
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. | |
virtual DataType | dataType () const |
Get the data type of the comparison. |
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.
virtual casa::BaseCompare::~BaseCompare | ( | ) | [inline, virtual] |
virtual int casa::BaseCompare::comp | ( | const void * | obj1, |
const void * | obj2 | ||
) | const [pure virtual] |
Compare two objects, and return.
Implemented in casa::ObjCompare< T >, and casa::MSInterval.
virtual DataType casa::BaseCompare::dataType | ( | ) | const [inline, virtual] |
Get the data type of the comparison.
By default it returns TpOther.
Reimplemented in casa::ObjCompare< T >.