OverSim
ProxKeyComparator< Metric, ProxComp > Class Template Reference

#include <Comparator.h>

Inheritance diagram for ProxKeyComparator< Metric, ProxComp >:
AbstractProxKeyComparator

Public Member Functions

 ProxKeyComparator (const OverlayKey &relativeKey)
 constructor
- Public Member Functions inherited from AbstractProxKeyComparator
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

Protected Attributes

Metric m
 indicates which metric to use for the key comparison
ProxComp pc
OverlayKey key
 the relative key to which distances are compared

Detailed Description

template<class Metric, class ProxComp = StdProxComparator>
class ProxKeyComparator< Metric, ProxComp >

Definition at line 324 of file Comparator.h.

Constructor & Destructor Documentation

template<class Metric, class ProxComp = StdProxComparator>
ProxKeyComparator< Metric, ProxComp >::ProxKeyComparator ( const OverlayKey relativeKey)
inline

constructor

Definition at line 335 of file Comparator.h.

{
this->key = relativeKey;
}

Member Data Documentation

template<class Metric, class ProxComp = StdProxComparator>
OverlayKey ProxKeyComparator< Metric, ProxComp >::key
protected

the relative key to which distances are compared

Definition at line 329 of file Comparator.h.

Referenced by ProxKeyComparator< Metric, ProxComp >::ProxKeyComparator(), and ProxKeyComparator< KeyPrefixMetric >::ProxKeyComparator().

template<class Metric, class ProxComp = StdProxComparator>
Metric ProxKeyComparator< Metric, ProxComp >::m
protected

indicates which metric to use for the key comparison

Definition at line 327 of file Comparator.h.

Referenced by ProxKeyComparator< KeyPrefixMetric >::ProxKeyComparator().

template<class Metric, class ProxComp = StdProxComparator>
ProxComp ProxKeyComparator< Metric, ProxComp >::pc
protected

Definition at line 328 of file Comparator.h.


The documentation for this class was generated from the following file: