OverlayKey Unidirectional Ring Metric. More...
#include <Comparator.h>
Public Member Functions | |
| OverlayKey | distance (const OverlayKey &x, const OverlayKey &y) const |
| calculates the distance from x to y on a unidirectional ring | |
OverlayKey Unidirectional Ring Metric.
Definition at line 138 of file Comparator.h.
| OverlayKey KeyUniRingMetric::distance | ( | const OverlayKey & | x, | |
| const OverlayKey & | y | |||
| ) | const [inline] |
calculates the distance from x to y on a unidirectional ring
| x | origination key | |
| y | destination key |
Definition at line 148 of file Comparator.h.
{
return y-x;
}
1.7.1