diff options
Diffstat (limited to 'lib/field.cpp')
-rw-r--r-- | lib/field.cpp | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/lib/field.cpp b/lib/field.cpp index 168935c..deecb06 100644 --- a/lib/field.cpp +++ b/lib/field.cpp | |||
@@ -2,72 +2,72 @@ | |||
2 | #include "filter.h" | 2 | #include "filter.h" |
3 | 3 | ||
4 | namespace verbly { | 4 | namespace verbly { |
5 | 5 | ||
6 | filter field::operator==(int value) const | 6 | filter field::operator==(int value) const |
7 | { | 7 | { |
8 | return filter(*this, filter::comparison::int_equals, value); | 8 | return filter(*this, filter::comparison::int_equals, value); |
9 | } | 9 | } |
10 | 10 | ||
11 | filter field::operator!=(int value) const | 11 | filter field::operator!=(int value) const |
12 | { | 12 | { |
13 | return filter(*this, filter::comparison::int_does_not_equal, value); | 13 | return filter(*this, filter::comparison::int_does_not_equal, value); |
14 | } | 14 | } |
15 | 15 | ||
16 | filter field::operator<(int value) const | 16 | filter field::operator<(int value) const |
17 | { | 17 | { |
18 | return filter(*this, filter::comparison::int_is_less_than, value); | 18 | return filter(*this, filter::comparison::int_is_less_than, value); |
19 | } | 19 | } |
20 | 20 | ||
21 | filter field::operator<=(int value) const | 21 | filter field::operator<=(int value) const |
22 | { | 22 | { |
23 | return filter(*this, filter::comparison::int_is_at_most, value); | 23 | return filter(*this, filter::comparison::int_is_at_most, value); |
24 | } | 24 | } |
25 | 25 | ||
26 | filter field::operator>(int value) const | 26 | filter field::operator>(int value) const |
27 | { | 27 | { |
28 | return filter(*this, filter::comparison::int_is_greater_than, value); | 28 | return filter(*this, filter::comparison::int_is_greater_than, value); |
29 | } | 29 | } |
30 | 30 | ||
31 | filter field::operator>=(int value) const | 31 | filter field::operator>=(int value) const |
32 | { | 32 | { |
33 | return filter(*this, filter::comparison::int_is_at_least, value); | 33 | return filter(*this, filter::comparison::int_is_at_least, value); |
34 | } | 34 | } |
35 | 35 | ||
36 | filter field::operator==(part_of_speech value) const | 36 | filter field::operator==(part_of_speech value) const |
37 | { | 37 | { |
38 | return filter(*this, filter::comparison::int_equals, static_cast<int>(value)); | 38 | return filter(*this, filter::comparison::int_equals, static_cast<int>(value)); |
39 | } | 39 | } |
40 | 40 | ||
41 | filter field::operator==(positioning value) const | 41 | filter field::operator==(positioning value) const |
42 | { | 42 | { |
43 | return filter(*this, filter::comparison::int_equals, static_cast<int>(value)); | 43 | return filter(*this, filter::comparison::int_equals, static_cast<int>(value)); |
44 | } | 44 | } |
45 | 45 | ||
46 | filter field::operator==(inflection value) const | 46 | filter field::operator==(inflection value) const |
47 | { | 47 | { |
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==(bool value) const | 51 | filter field::operator==(bool value) const |
52 | { | 52 | { |
53 | return filter(*this, filter::comparison::boolean_equals, value); | 53 | return filter(*this, filter::comparison::boolean_equals, value); |
54 | } | 54 | } |
55 | 55 | ||
56 | filter field::operator==(std::string value) const | 56 | filter field::operator==(std::string value) const |
57 | { | 57 | { |
58 | return filter(*this, filter::comparison::string_equals, std::move(value)); | 58 | return filter(*this, filter::comparison::string_equals, std::move(value)); |
59 | } | 59 | } |
60 | 60 | ||
61 | filter field::operator!=(std::string value) const | 61 | filter field::operator!=(std::string value) const |
62 | { | 62 | { |
63 | return filter(*this, filter::comparison::string_does_not_equal, std::move(value)); | 63 | return filter(*this, filter::comparison::string_does_not_equal, std::move(value)); |
64 | } | 64 | } |
65 | 65 | ||
66 | filter field::operator%=(std::string value) const | 66 | filter field::operator%=(std::string value) const |
67 | { | 67 | { |
68 | return filter(*this, filter::comparison::string_is_like, std::move(value)); | 68 | return filter(*this, filter::comparison::string_is_like, std::move(value)); |
69 | } | 69 | } |
70 | 70 | ||
71 | field::operator filter() const | 71 | field::operator filter() const |
72 | { | 72 | { |
73 | if (isJoin()) | 73 | if (isJoin()) |
@@ -77,7 +77,7 @@ namespace verbly { | |||
77 | return filter(*this, filter::comparison::is_not_null); | 77 | return filter(*this, filter::comparison::is_not_null); |
78 | } | 78 | } |
79 | } | 79 | } |
80 | 80 | ||
81 | filter field::operator!() const | 81 | filter field::operator!() const |
82 | { | 82 | { |
83 | if (isJoin()) | 83 | if (isJoin()) |
@@ -87,7 +87,7 @@ namespace verbly { | |||
87 | return filter(*this, filter::comparison::is_null); | 87 | return filter(*this, filter::comparison::is_null); |
88 | } | 88 | } |
89 | } | 89 | } |
90 | 90 | ||
91 | filter field::operator%=(filter joinCondition) const | 91 | filter field::operator%=(filter joinCondition) const |
92 | { | 92 | { |
93 | if (type_ == type::hierarchal_join) | 93 | if (type_ == type::hierarchal_join) |
@@ -97,5 +97,5 @@ namespace verbly { | |||
97 | return filter(*this, filter::comparison::matches, std::move(joinCondition)); | 97 | return filter(*this, filter::comparison::matches, std::move(joinCondition)); |
98 | } | 98 | } |
99 | } | 99 | } |
100 | 100 | ||
101 | }; | 101 | }; |