KeyStdMetric Class Reference

#include <Comparator.h>

List of all members.


Detailed Description

OverlayKey standard metric.


Public Member Functions

OverlayKey distance (const OverlayKey &x, const OverlayKey &y) const
 calculates the difference between x and y


Member Function Documentation

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

calculates the difference between x and y

Parameters:
x first parameter
y second parameter
Returns:
|x-y|
00057     {
00058         return x > y ? (x-y) : (y-x);
00059     }


The documentation for this class was generated from the following file:
Generated on Tue Jul 24 16:51:18 2007 for ITM OverSim by  doxygen 1.5.1