#include <Comparator.h>

Public Member Functions | |
| ProxKeyComparator (const OverlayKey &relativeKey, uint32_t bitsPerDigit=1) | |
| constructor | |
Protected Attributes | |
| 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 322 of file Comparator.h.
| ProxKeyComparator< KeyPrefixMetric >::ProxKeyComparator | ( | const OverlayKey & | relativeKey, | |
| uint32_t | bitsPerDigit = 1 | |||
| ) | [inline] |
constructor
Definition at line 333 of file Comparator.h.
00334 { 00335 this->key = relativeKey; 00336 m.setBitsPerDigit(bitsPerDigit); 00337 }
OverlayKey ProxKeyComparator< KeyPrefixMetric >::key [protected] |
the relative key to which distances are compared
Definition at line 327 of file Comparator.h.
Referenced by KademliaPRComparator::compare().
KeyPrefixMetric ProxKeyComparator< KeyPrefixMetric >::m [protected] |
indicates which metric to use for the key comparison
Definition at line 325 of file Comparator.h.
Referenced by KademliaPRComparator::compare().
StdProxComparator ProxKeyComparator< KeyPrefixMetric >::pc [protected] |
1.5.8