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