From e48382d539bddf4c57542e2a12c4a8ddec69d0b6 Mon Sep 17 00:00:00 2001 From: Emiel Bruijntjes Date: Thu, 6 Mar 2014 17:05:19 +0100 Subject: changes to documentation, comparison operators added to Value class --- include/value.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'include/value.h') diff --git a/include/value.h b/include/value.h index b732616..7615997 100644 --- a/include/value.h +++ b/include/value.h @@ -262,6 +262,17 @@ public: Value operator%(const char *value); Value operator%(double value); + /** + * Comparison operators + * @param value + */ + template bool operator==(const T &value) const { return (T)*this == value; } + template bool operator!=(const T &value) const { return (T)*this == value; } + template bool operator<=(const T &value) const { return (T)*this == value; } + template bool operator>=(const T &value) const { return (T)*this == value; } + template bool operator< (const T &value) const { return (T)*this == value; } + template bool operator> (const T &value) const { return (T)*this == value; } + /** * The type of object * @return Type -- cgit v1.2.3