ProxKeyComparator< KeyPrefixMetric > Class Template Reference

#include <Comparator.h>

Inheritance diagram for ProxKeyComparator< KeyPrefixMetric >:
AbstractProxKeyComparator KademliaPRComparator

List of all members.

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

Detailed Description

template<>
class ProxKeyComparator< KeyPrefixMetric >

Definition at line 322 of file Comparator.h.


Constructor & Destructor Documentation

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     }


Member Data Documentation

the relative key to which distances are compared

Definition at line 327 of file Comparator.h.

Referenced by KademliaPRComparator::compare().

indicates which metric to use for the key comparison

Definition at line 325 of file Comparator.h.

Referenced by KademliaPRComparator::compare().

Definition at line 326 of file Comparator.h.

Referenced by KademliaPRComparator::compare().


The documentation for this class was generated from the following file:
Generated on Wed May 26 16:21:18 2010 for OverSim by  doxygen 1.6.3