summaryrefslogtreecommitdiff
path: root/src/theory/theory.h
diff options
context:
space:
mode:
authorCesare Tinelli <cesare-tinelli@uiowa.edu>2010-02-22 18:59:37 +0000
committerCesare Tinelli <cesare-tinelli@uiowa.edu>2010-02-22 18:59:37 +0000
commit9ae657c4568114eb888d9c0b8c27c09586556ff3 (patch)
tree1abb476b99c20c3c8906d8893159923eb0ccce3a /src/theory/theory.h
parent533ed01ce6fdd3b93130b7ba0dbeedcd807a7a1f (diff)
* Add virtual destructors to CnfStream, Theory, OutputChannel, and
ExplainOutputChannel. Safer and stops a compiler warning. * node attributes: fix compiler warnings on 64-bit. * Node: add asserts to make sure the current NodeManager is non-NULL when it's needed. This can happen when public-facing functions don't properly set the node manager, and it can look like a bug in another part of the library. Also some code format cleanup. * configure.ac, config/cvc4.m4: added --enable-static-binary (see discussion on bug 32), fixed bad configure lines (bug 19), added documentation for some things. * config.h.in: removed; it's auto-generated.
Diffstat (limited to 'src/theory/theory.h')
-rw-r--r--src/theory/theory.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/theory/theory.h b/src/theory/theory.h
index 8b83f71cf..dffc99053 100644
--- a/src/theory/theory.h
+++ b/src/theory/theory.h
@@ -58,12 +58,20 @@ public:
static bool fullEffort(Effort e) { return e >= FULL_EFFORT; }
/**
- * Construct a theory.
+ * Construct a Theory.
*/
Theory() {
}
/**
+ * Destructs a Theory. This implementation does nothing, but we
+ * need a virtual destructor for safety in case subclasses have a
+ * destructor.
+ */
+ virtual ~Theory() {
+ }
+
+ /**
* Prepare for a Node.
*
* When get() is called to get the next thing off the theory queue,
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback