KeyStdMetric Class Reference

OverlayKey standard 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 with the standard metric

Detailed Description

OverlayKey standard metric.

Definition at line 70 of file Comparator.h.


Member Function Documentation

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

calculates the distance from x to y with the standard metric

Parameters:
x origination key
y destination key
Returns:
|y-x|

Definition at line 80 of file Comparator.h.

00082     {
00083         return x > y ? (x-y) : (y-x);
00084     }


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