summary refs log tree commit diff stats
path: root/lib/field.cpp
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2017-02-03 10:35:31 -0500
committerKelly Rauchenberger <fefferburbia@gmail.com>2017-02-03 10:35:31 -0500
commita2cb19c3c8e7b16475c0ddf05e7a55751176b862 (patch)
treeabdd9f16465e386bc75e27c79c5617bba4635f65 /lib/field.cpp
parenta7645346293ed6a912c26d0c50b6f7943f1f3072 (diff)
downloadverbly-a2cb19c3c8e7b16475c0ddf05e7a55751176b862.tar.gz
verbly-a2cb19c3c8e7b16475c0ddf05e7a55751176b862.tar.bz2
verbly-a2cb19c3c8e7b16475c0ddf05e7a55751176b862.zip
Added enum inequality matches to field
Diffstat (limited to 'lib/field.cpp')
-rw-r--r--lib/field.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/lib/field.cpp b/lib/field.cpp index 5b51ef4..ad6d958 100644 --- a/lib/field.cpp +++ b/lib/field.cpp
@@ -53,6 +53,26 @@ namespace verbly {
53 return filter(*this, filter::comparison::int_equals, static_cast<int>(value)); 53 return filter(*this, filter::comparison::int_equals, static_cast<int>(value));
54 } 54 }
55 55
56 filter field::operator!=(part_of_speech value) const
57 {
58 return filter(*this, filter::comparison::int_does_not_equal, static_cast<int>(value));
59 }
60
61 filter field::operator!=(positioning value) const
62 {
63 return filter(*this, filter::comparison::int_does_not_equal, static_cast<int>(value));
64 }
65
66 filter field::operator!=(inflection value) const
67 {
68 return filter(*this, filter::comparison::int_does_not_equal, static_cast<int>(value));
69 }
70
71 filter field::operator!=(part_type value) const
72 {
73 return filter(*this, filter::comparison::int_does_not_equal, static_cast<int>(value));
74 }
75
56 filter field::operator==(bool value) const 76 filter field::operator==(bool value) const
57 { 77 {
58 return filter(*this, filter::comparison::boolean_equals, value); 78 return filter(*this, filter::comparison::boolean_equals, value);