#include <Comparator.h>

Public Member Functions | |
| KeyDistanceComparator (const OverlayKey &relativeKey) | |
| constructor | |
| int | compare (const OverlayKey &lhs, const OverlayKey &rhs) const |
| indicates which of the two given keys has a longer distance to the relative key | |
Private Attributes | |
| Metric | m |
| indicates which metric to use for the comparison | |
| OverlayKey | key |
| the relative key to which distances are compared | |
| KeyDistanceComparator< Metric >::KeyDistanceComparator | ( | const OverlayKey & | relativeKey | ) | [inline] |
| int KeyDistanceComparator< Metric >::compare | ( | const OverlayKey & | lhs, | |
| const OverlayKey & | rhs | |||
| ) | const [inline, virtual] |
indicates which of the two given keys has a longer distance to the relative key
| lhs | first key | |
| rhs | second key |
Reimplemented from Comparator< OverlayKey >.
Metric KeyDistanceComparator< Metric >::m [private] |
indicates which metric to use for the comparison
OverlayKey KeyDistanceComparator< Metric >::key [private] |
the relative key to which distances are compared
1.5.3