|
OverSim
|
#include <Comparator.h>
Public Member Functions | |
| KademliaPRComparator (const OverlayKey &relativeKey, uint32_t bitsPerDigit=1) | |
| int | compare (const ProxKey &lhs, const ProxKey &rhs) const |
| indicates which of the two given prox/key-pairs is closer to the relative key | |
Public Member Functions inherited from ProxKeyComparator< KeyPrefixMetric > | |
| ProxKeyComparator (const OverlayKey &relativeKey, uint32_t bitsPerDigit=1) | |
| constructor | |
Public Member Functions inherited from AbstractProxKeyComparator | |
| virtual | ~AbstractProxKeyComparator () |
Additional Inherited Members | |
Protected Attributes inherited from ProxKeyComparator< KeyPrefixMetric > | |
| KeyPrefixMetric | m |
| indicates which metric to use for the key comparison | |
| StdProxComparator | pc |
| OverlayKey | key |
| the relative key to which distances are compared | |
Definition at line 361 of file Comparator.h.
|
inline |
Definition at line 364 of file Comparator.h.
indicates which of the two given prox/key-pairs is closer to the relative key
| lhs | first prox/key-pair |
| rhs | second prox/key-pair |
Implements AbstractProxKeyComparator.
Definition at line 367 of file Comparator.h.