From f625e90a0721483f7f44b94b9bb57cc9d59565e8 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Fri, 10 Feb 2017 11:48:58 -0500 Subject: Added negative filter conversions to objects --- lib/frame.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'lib/frame.h') 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 { return (id == id_); } + filter operator!() const + { + if (!valid_) + { + throw std::domain_error("Bad access to uninitialized frame"); + } + + return (id != id_); + } + // Relationships to other objects static const field words; -- cgit 1.4.1