diff options
author | Tim King <taking@cs.nyu.edu> | 2010-02-24 21:08:15 +0000 |
---|---|---|
committer | Tim King <taking@cs.nyu.edu> | 2010-02-24 21:08:15 +0000 |
commit | 3bc3eae0d3e36870b30636bd1e3eb52683e0dc17 (patch) | |
tree | e83352315485d8f08857276049969fc842fa2e93 /src/theory/theory.h | |
parent | 4c1cb16059e6e484581873dfb3103851183ccc72 (diff) |
Committing small changes to attribute, and theory to avoid future merge problems for Moragn. Also cleaned up theory uf and ecdata, and updated both to reflect attribute. Should be close now.
Diffstat (limited to 'src/theory/theory.h')
-rw-r--r-- | src/theory/theory.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/theory/theory.h b/src/theory/theory.h index 831a185f8..76b9697dc 100644 --- a/src/theory/theory.h +++ b/src/theory/theory.h @@ -60,8 +60,7 @@ public: /** * Construct a Theory. */ - Theory() { - } + Theory(context::Context* c) : d_assertions(c), d_nextAssertion(c, 0){} /** * Destructs a Theory. This implementation does nothing, but we @@ -82,7 +81,10 @@ public: * setup() MUST NOT MODIFY context-dependent objects that it hasn't * itself just created. */ - virtual void setup(const Node& n) = 0; + + /*virtual void setup(const Node& n) = 0;*/ + + virtual void registerTerm(TNode n) = 0; /** * Assert a fact in the current context. @@ -109,6 +111,9 @@ public: virtual void explain(OutputChannel& out, const Node& n, Effort level = FULL_EFFORT) = 0; +private: + context::CDList<Node> d_assertions; + context::CDO<unsigned> d_nextAssertion; protected: /** @@ -121,7 +126,7 @@ protected: /** * Returns true if the assertFactQueue is empty */ - bool done() { return true; } + bool done(); };/* class Theory */ |