diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2017-02-10 11:48:58 -0500 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2017-02-10 11:48:58 -0500 |
commit | f625e90a0721483f7f44b94b9bb57cc9d59565e8 (patch) | |
tree | 6d8bfe0fb1f1bea9e9c1cc96805ffd77c32411e6 /lib/form.h | |
parent | 4208387c4a6b7ecf43d756a8bba96b9cfc5227b9 (diff) | |
download | verbly-f625e90a0721483f7f44b94b9bb57cc9d59565e8.tar.gz verbly-f625e90a0721483f7f44b94b9bb57cc9d59565e8.tar.bz2 verbly-f625e90a0721483f7f44b94b9bb57cc9d59565e8.zip |
Added negative filter conversions to objects
Diffstat (limited to 'lib/form.h')
-rw-r--r-- | lib/form.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/form.h b/lib/form.h index f501ed2..e3e1185 100644 --- a/lib/form.h +++ b/lib/form.h | |||
@@ -102,6 +102,16 @@ namespace verbly { | |||
102 | return (id == id_); | 102 | return (id == id_); |
103 | } | 103 | } |
104 | 104 | ||
105 | filter operator!() const | ||
106 | { | ||
107 | if (!valid_) | ||
108 | { | ||
109 | throw std::domain_error("Bad access to uninitialized form"); | ||
110 | } | ||
111 | |||
112 | return (id != id_); | ||
113 | } | ||
114 | |||
105 | // Relationships to other objects | 115 | // Relationships to other objects |
106 | 116 | ||
107 | static field words(inflection category); | 117 | static field words(inflection category); |