#include <comparator.h>
Public Member Functions | |
Constructors and Destructors | |
Comparator () throw () | |
Default constructor. | |
virtual | ~Comparator () throw () |
Destructor. | |
Predicates | |
virtual bool | isEqual (const T &a, const T &b) const throw () |
Test if two values are equal. | |
bool | isNotEqual (const T &a, const T &b) const throw () |
Test if two values are unequal. | |
virtual bool | isLess (const T &a, const T &b) const throw () |
Test if a is less then b. | |
bool | isLessOrEqual (const T &a, const T &b) const throw () |
Test if a is less or equal. | |
bool | isGreaterOrEqual (const T &a, const T &b) const throw () |
Test if a is greater or equal. | |
bool | isGreater (const T &a, const T &b) const throw () |
Test if a is greater then b. | |
int | operator() (const T &a, const T &b) const throw () |
Compare two values. |
It is used as a baseclass, providing a common interface.
|
Test if two values are equal.
|
|
Test if a is greater then b.
|
|
Test if a is greater or equal.
|
|
Test if a is less then b.
|
|
Test if a is less or equal.
|
|
Test if two values are unequal.
|
|
Compare two values. -1 is returned if a < b.
|