28 #if !defined(MYSQLPP_COMPARABLE_H)
29 #define MYSQLPP_COMPARABLE_H
93 virtual int compare(
const T& other)
const = 0;
Mix-in that gives its subclass a full set of comparison operators.
Definition: comparable.h:41
virtual ~Comparable()
Destroy object.
Definition: comparable.h:87
bool operator==(const T &other) const
Returns true if "other" is equal to this object.
Definition: comparable.h:44
virtual int compare(const T &other) const =0
Compare this object to another of the same type.
bool operator>(const T &other) const
Returns true if "other" is greater than this object.
Definition: comparable.h:68
bool operator<=(const T &other) const
Returns true if "other" is less than or equal to this object.
Definition: comparable.h:62
bool operator!=(const T &other) const
Returns true if "other" is not equal to this object.
Definition: comparable.h:50
bool operator<(const T &other) const
Returns true if "other" is less than this object.
Definition: comparable.h:56
bool operator>=(const T &other) const
Returns true if "other" is greater than or equal to this object.
Definition: comparable.h:74