AbstractProxComparator Class Reference

#include <Comparator.h>

Inheritance diagram for AbstractProxComparator:
StdProxComparator

List of all members.

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 255 of file Comparator.h.


Constructor & Destructor Documentation

virtual AbstractProxComparator::~AbstractProxComparator (  )  [inline, virtual]

Definition at line 258 of file Comparator.h.

00258 {};


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:
lhs first proximity value
rhs second 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:
Generated on Wed May 26 16:21:16 2010 for OverSim by  doxygen 1.6.3