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 Tue Sep 8 17:26:56 2009 for OverSim by  doxygen 1.5.8