KeyUniRingMetric Class Reference

OverlayKey Unidirectional Ring Metric. More...

#include <Comparator.h>

List of all members.

Public Member Functions

OverlayKey distance (const OverlayKey &x, const OverlayKey &y) const
 calculates the distance from x to y on a unidirectional ring

Detailed Description

OverlayKey Unidirectional Ring Metric.

Definition at line 138 of file Comparator.h.


Member Function Documentation

OverlayKey KeyUniRingMetric::distance ( const OverlayKey x,
const OverlayKey y 
) const [inline]

calculates the distance from x to y on a unidirectional ring

Parameters:
x origination key
y destination key
Returns:
distance from x to y on a unidirectional ring

Definition at line 148 of file Comparator.h.

00150     {
00151         return y-x;
00152     }


The documentation for this class was generated from the following file:
Generated on Wed May 26 16:21:18 2010 for OverSim by  doxygen 1.6.3