summary refs log tree commit diff stats
path: root/lib/form.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/form.h')
-rw-r--r--lib/form.h10
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);