OverSim
|
OverlayKey Clockwise 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 clockwise unidirectional ring |
OverlayKey Clockwise Unidirectional Ring Metric.
Definition at line 138 of file Comparator.h.
|
inline |
calculates the distance from x to y on a clockwise unidirectional ring
x | origination key |
y | destination key |
Definition at line 148 of file Comparator.h.
Referenced by oversim::Chord::distance(), and OverlayKey::test().