#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 | |
Definition at line 34 of file Comparator.h.
| virtual Comparator< T >::~Comparator | ( | ) | [inline, virtual] |
| virtual int Comparator< T >::compare | ( | const T & | lhs, | |
| const T & | rhs | |||
| ) | const [inline, virtual] |
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< Metric >, KeyDistanceComparator< KeyPrefixMetric >, IterativeLookup, and KeyDistanceComparator< KeyXorMetric >.
Definition at line 52 of file Comparator.h.
Referenced by BaseKeySortedVector< LookupEntry >::add(), and BaseKeySortedVector< LookupEntry >::isAddable().
1.5.8