X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcommon%2Ftypes.h;h=0154247e75a0acb800201cea2a2b6b32d8b65cd4;hb=3439fc6d10d49edb1af23fd2f4ebb688692475d7;hp=949306b8faae2433ec7dc92862074596155d0029;hpb=ee6e4f90ce63d7eb3a54937cffb33510398d2349;p=quassel.git diff --git a/src/common/types.h b/src/common/types.h index 949306b8..0154247e 100644 --- a/src/common/types.h +++ b/src/common/types.h @@ -18,8 +18,8 @@ * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ***************************************************************************/ -#ifndef _TYPES_H_ -#define _TYPES_H_ +#ifndef TYPES_H_ +#define TYPES_H_ #include #include @@ -37,6 +37,9 @@ class SignedId { inline bool operator==(const SignedId &other) const { return id == other.id; } inline bool operator!=(const SignedId &other) const { return id != other.id; } inline bool operator<(const SignedId &other) const { return id < other.id; } + inline bool operator<=(const SignedId &other) const { return id <= other.id; } + inline bool operator>(const SignedId &other) const { return id > other.id; } + inline bool operator>=(const SignedId &other) const { return id >= other.id; } inline bool operator==(int i) const { return id == i; } inline bool operator!=(int i) const { return id != i; } inline bool operator<(int i) const { return id < i; }