OverSim
|
Default Comparator. More...
#include <Comparator.h>
Public Member Functions | |
virtual | ~Comparator () |
virtual destructor | |
virtual int | compare (const T &lhs, const T &rhs) const |
compares two variables of type T and indicates which one is smaller or if they are equal |
Default Comparator.
Definition at line 34 of file Comparator.h.
|
inlinevirtual |
|
inlinevirtual |
compares two variables of type T and indicates which one is smaller or if they are equal
lhs | first variable to compare |
rhs | second variable to compare |
Reimplemented in KeyDistanceComparator< KeyPrefixMetric >, KeyDistanceComparator< Metric >, KeyDistanceComparator< KeyXorMetric >, and IterativeLookup.
Definition at line 52 of file Comparator.h.
Referenced by BaseKeySortedVector< LookupEntry >::add(), and BaseKeySortedVector< LookupEntry >::isAddable().