OverSim
KeyCcwRingMetric Class Reference

OverlayKey Counterclockwise 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 counterclockwise unidirectional ring

Detailed Description

OverlayKey Counterclockwise Unidirectional Ring Metric.

Definition at line 158 of file Comparator.h.

Member Function Documentation

OverlayKey KeyCcwRingMetric::distance ( const OverlayKey x,
const OverlayKey y 
) const
inline

calculates the distance from x to y on a counterclockwise unidirectional ring

Parameters
xorigination key
ydestination key
Returns
distance from x to y on a unidirectional ring

Definition at line 168 of file Comparator.h.

{
return x-y;
}

The documentation for this class was generated from the following file: