|
OverSim
|
#include <Comparator.h>
Public Member Functions | |
| KeyDistanceComparator (const OverlayKey &relativeKey, uint32_t bitsPerDigit=1) | |
| constructor | |
| int | compare (const OverlayKey &lhs, const OverlayKey &rhs) const |
| indicates which of the two given keys has a longer distance to the relative key | |
Public Member Functions inherited from Comparator< OverlayKey > | |
| virtual | ~Comparator () |
| virtual destructor | |
Private Attributes | |
| KeyPrefixMetric | m |
| indicates which metric to use for the comparison | |
| OverlayKey | key |
| the relative key to which distances are compared | |
Definition at line 246 of file Comparator.h.
|
inline |
constructor
Definition at line 256 of file Comparator.h.
|
inlinevirtual |
indicates which of the two given keys has a longer distance to the relative key
| lhs | first key |
| rhs | second key |
Reimplemented from Comparator< OverlayKey >.
Definition at line 270 of file Comparator.h.
|
private |
the relative key to which distances are compared
Definition at line 250 of file Comparator.h.
|
private |
indicates which metric to use for the comparison
Definition at line 249 of file Comparator.h.