OverSim
KeyXorMetric Class Reference

OverlayKey XOR Metric. More...

#include <Comparator.h>

Public Member Functions

OverlayKey distance (const OverlayKey &x, const OverlayKey &y) const
 calculates the distance from x to y with the XOR metric

Detailed Description

OverlayKey XOR Metric.

Definition at line 90 of file Comparator.h.

Member Function Documentation

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

calculates the distance from x to y with the XOR metric

Parameters
xorigination key
ydestination key
Returns
x XOR y

Definition at line 100 of file Comparator.h.

{
return x^y;
}

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