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/frame.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/frame.h')
-rw-r--r-- | lib/frame.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/frame.h b/lib/frame.h index dfe67c0..5fa6c6b 100644 --- a/lib/frame.h +++ b/lib/frame.h | |||
@@ -83,6 +83,16 @@ namespace verbly { | |||
83 | return (id == id_); | 83 | return (id == id_); |
84 | } | 84 | } |
85 | 85 | ||
86 | filter operator!() const | ||
87 | { | ||
88 | if (!valid_) | ||
89 | { | ||
90 | throw std::domain_error("Bad access to uninitialized frame"); | ||
91 | } | ||
92 | |||
93 | return (id != id_); | ||
94 | } | ||
95 | |||
86 | // Relationships to other objects | 96 | // Relationships to other objects |
87 | 97 | ||
88 | static const field words; | 98 | static const field words; |