diff options
Diffstat (limited to 'lib/field.cpp')
| -rw-r--r-- | lib/field.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
| diff --git a/lib/field.cpp b/lib/field.cpp index deecb06..5b51ef4 100644 --- a/lib/field.cpp +++ b/lib/field.cpp | |||
| @@ -48,6 +48,11 @@ namespace verbly { | |||
| 48 | return filter(*this, filter::comparison::int_equals, static_cast<int>(value)); | 48 | return filter(*this, filter::comparison::int_equals, static_cast<int>(value)); |
| 49 | } | 49 | } |
| 50 | 50 | ||
| 51 | filter field::operator==(part_type value) const | ||
| 52 | { | ||
| 53 | return filter(*this, filter::comparison::int_equals, static_cast<int>(value)); | ||
| 54 | } | ||
| 55 | |||
| 51 | filter field::operator==(bool value) const | 56 | filter field::operator==(bool value) const |
| 52 | { | 57 | { |
| 53 | return filter(*this, filter::comparison::boolean_equals, value); | 58 | return filter(*this, filter::comparison::boolean_equals, value); |
| @@ -68,6 +73,21 @@ namespace verbly { | |||
| 68 | return filter(*this, filter::comparison::string_is_like, std::move(value)); | 73 | return filter(*this, filter::comparison::string_is_like, std::move(value)); |
| 69 | } | 74 | } |
| 70 | 75 | ||
| 76 | filter field::operator==(const char* value) const | ||
| 77 | { | ||
| 78 | return filter(*this, filter::comparison::string_equals, std::string(value)); | ||
| 79 | } | ||
| 80 | |||
| 81 | filter field::operator!=(const char* value) const | ||
| 82 | { | ||
| 83 | return filter(*this, filter::comparison::string_does_not_equal, std::string(value)); | ||
| 84 | } | ||
| 85 | |||
| 86 | filter field::operator%=(const char* value) const | ||
| 87 | { | ||
| 88 | return filter(*this, filter::comparison::string_is_like, std::string(value)); | ||
| 89 | } | ||
| 90 | |||
| 71 | field::operator filter() const | 91 | field::operator filter() const |
| 72 | { | 92 | { |
| 73 | if (isJoin()) | 93 | if (isJoin()) |
