24 #ifndef __COMPARATOR_H
25 #define __COMPARATOR_H
52 virtual int compare(
const T& lhs,
const T& rhs )
const
54 return lhs.compareTo(rhs);
83 return x > y ? (x-y) : (y-x);
214 template<
class Metric = KeyStdMetric>
227 this->
key = relativeKey;
241 return m.distance(lhs,
key).compareTo(
m.distance(rhs,
key));
259 m.setBitsPerDigit(bitsPerDigit);
272 return m.distance(lhs,
key).compareTo(
m.distance(rhs,
key));
323 template<
class Metric,
class ProxComp = StdProxComparator>
337 this->
key = relativeKey;
356 this->
key = relativeKey;
357 m.setBitsPerDigit(bitsPerDigit);