compare two objects More...
#include <Compare.h>
Public Member Functions | |
| virtual | ~ObjCompare () |
| virtual int | comp (const void *obj1, const void *obj2) const |
| Compare two objects, and return. | |
| virtual DataType | dataType () const |
| Get the data type of the sort comparison. | |
Static Public Member Functions | |
| static int | compare (const void *obj1, const void *obj2) |
| Compare two objects, and return. | |
compare two objects
Public interface
The templated class ObjCompare<T> really is only a place holder for the static function compare which compares two objects of type T.
Definition at line 100 of file Compare.h.
| virtual casacore::ObjCompare< T >::~ObjCompare | ( | ) | [virtual] |
| virtual int casacore::ObjCompare< T >::comp | ( | const void * | obj1, | |
| const void * | obj2 | |||
| ) | const [virtual] |
Compare two objects, and return.
Implements casacore::BaseCompare.
| static int casacore::ObjCompare< T >::compare | ( | const void * | obj1, | |
| const void * | obj2 | |||
| ) | [static] |
Compare two objects, and return.
The static function is not inlined allowing one to take the address of it. Furthermore, the function's signature agrees with ObjCompareFunc .
| virtual DataType casacore::ObjCompare< T >::dataType | ( | ) | const [virtual] |
Get the data type of the sort comparison.
Reimplemented from casacore::BaseCompare.
1.6.1