Go to the documentation of this file.
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)
bool operator!=(const T &other) const
Returns true if "other" is not equal to this object.
Definition: comparable.h:94
bool operator>=(const T &other) const
Returns true if "other" is greater than or equal to this object.
Definition: comparable.h:118
bool operator>(const T &other) const
Returns true if "other" is greater than this object.
Definition: comparable.h:112
virtual ~Comparable()
Destroy object.
Definition: comparable.h:131
bool operator==(const T &other) const
Returns true if "other" is equal to this object.
Definition: comparable.h:88
bool operator<=(const T &other) const
Returns true if "other" is less than or equal to this object.
Definition: comparable.h:106
bool operator<(const T &other) const
Returns true if "other" is less than this object.
Definition: comparable.h:100
virtual int compare(const T &other) const =0
Compare this object to another of the same type.