diff options
author | valmat <ufabiz@gmail.com> | 2014-06-11 18:34:13 +0600 |
---|---|---|
committer | valmat <ufabiz@gmail.com> | 2014-06-11 18:34:13 +0600 |
commit | e350c8f1b33d7c6c605f5450e8cf901cc3e5e1c4 (patch) | |
tree | cdb358e5c480fdab2ad00d6fe20d008255278c14 /include | |
parent | a3aea78834102b7d0f206c73463de69050f15076 (diff) |
Value::operator==
Diffstat (limited to 'include')
-rw-r--r-- | include/value.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/value.h b/include/value.h index c478eb2..307702e 100644 --- a/include/value.h +++ b/include/value.h @@ -322,13 +322,19 @@ public: bool operator> (const char *value) const { return ::strcmp(rawValue(), value) > 0; } /** + * Helper method to prepare for comparison + * @param value + */ + bool comparePrepare(const Value &value) const; + + /** * Comparison operators for hardcoded Value * @param value */ bool operator==(const Value &value) const; bool operator!=(const Value &value) const { return !operator==(value); } bool operator< (const Value &value) const; - bool operator> (const Value &value) const; + bool operator> (const Value &value) const { return value.operator<(*this); } bool operator<=(const Value &value) const { return !operator>(value); } bool operator>=(const Value &value) const { return !operator<(value); } |