|
OverSim
|
#include <Comparator.h>
Public Member Functions | |
| virtual | ~AbstractProxKeyComparator () |
| virtual int | compare (const ProxKey &lhs, const ProxKey &rhs) const =0 |
| indicates which of the two given prox/key-pairs is closer to the relative key | |
Definition at line 306 of file Comparator.h.
|
inlinevirtual |
Definition at line 309 of file Comparator.h.
|
pure virtual |
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 |
Implemented in AccordionPRComparator, and KademliaPRComparator.
Referenced by BaseKeySortedVector< LookupEntry >::add(), and BaseKeySortedVector< LookupEntry >::isAddable().