OverSim
AbstractProxComparator Class Reference

#include <Comparator.h>

Inheritance diagram for AbstractProxComparator:
StdProxComparator

Public Member Functions

virtual ~AbstractProxComparator ()
virtual int compare (const Prox &lhs, const Prox &rhs) const =0
 indicates which of the two given proximities is "better"

Detailed Description

Definition at line 276 of file Comparator.h.

Constructor & Destructor Documentation

virtual AbstractProxComparator::~AbstractProxComparator ( )
inlinevirtual

Definition at line 279 of file Comparator.h.

{};

Member Function Documentation

virtual int AbstractProxComparator::compare ( const Prox lhs,
const Prox rhs 
) const
pure virtual

indicates which of the two given proximities is "better"

Parameters
lhsfirst proximity value
rhssecond proximity value
Returns
-1 if lhs is closer, 0 if lhs and rhs are equal and 1 if rhs closer

Implemented in StdProxComparator.

Referenced by BaseKeySortedVector< LookupEntry >::add(), and BaseKeySortedVector< LookupEntry >::isAddable().


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