summaryrefslogtreecommitdiff
path: root/src/theory/sets/theory_sets.h
diff options
context:
space:
mode:
authorTim King <taking@cs.nyu.edu>2018-08-22 13:09:39 -0700
committerGitHub <noreply@github.com>2018-08-22 13:09:39 -0700
commit923bd039728c972fef1bbf1a24f23f735e295bce (patch)
tree9b4c892e2ab9c38a8704a486e3060020b590dcbb /src/theory/sets/theory_sets.h
parent3e098509138842fbfb8cfc504b6ad390f7630948 (diff)
Wrapping TheorySetsPrivate in a unique_ptr. (#2356)
Diffstat (limited to 'src/theory/sets/theory_sets.h')
-rw-r--r--src/theory/sets/theory_sets.h51
1 files changed, 19 insertions, 32 deletions
diff --git a/src/theory/sets/theory_sets.h b/src/theory/sets/theory_sets.h
index 7ccda3dad..e679d33c3 100644
--- a/src/theory/sets/theory_sets.h
+++ b/src/theory/sets/theory_sets.h
@@ -19,6 +19,8 @@
#ifndef __CVC4__THEORY__SETS__THEORY_SETS_H
#define __CVC4__THEORY__SETS__THEORY_SETS_H
+#include <memory>
+
#include "theory/theory.h"
#include "theory/uf/equality_engine.h"
@@ -29,56 +31,41 @@ namespace sets {
class TheorySetsPrivate;
class TheorySetsScrutinize;
-class TheorySets : public Theory {
-private:
- friend class TheorySetsPrivate;
- friend class TheorySetsScrutinize;
- friend class TheorySetsRels;
- TheorySetsPrivate* d_internal;
-public:
-
- /**
- * Constructs a new instance of TheorySets w.r.t. the provided
- * contexts.
- */
- TheorySets(context::Context* c, context::UserContext* u, OutputChannel& out,
- Valuation valuation, const LogicInfo& logicInfo);
-
- ~TheorySets();
+class TheorySets : public Theory
+{
+ public:
+ /** Constructs a new instance of TheorySets w.r.t. the provided contexts. */
+ TheorySets(context::Context* c,
+ context::UserContext* u,
+ OutputChannel& out,
+ Valuation valuation,
+ const LogicInfo& logicInfo);
+ ~TheorySets() override;
void addSharedTerm(TNode) override;
-
void check(Effort) override;
-
bool needsCheckLastEffort() override;
-
bool collectModelInfo(TheoryModel* m) override;
-
void computeCareGraph() override;
-
Node explain(TNode) override;
-
EqualityStatus getEqualityStatus(TNode a, TNode b) override;
-
Node getModelValue(TNode) override;
-
std::string identify() const override { return "THEORY_SETS"; }
-
void preRegisterTerm(TNode node) override;
-
Node expandDefinition(LogicRequest& logicRequest, Node n) override;
-
PPAssertStatus ppAssert(TNode in, SubstitutionMap& outSubstitutions) override;
-
void presolve() override;
-
void propagate(Effort) override;
-
void setMasterEqualityEngine(eq::EqualityEngine* eq) override;
+ bool isEntailed(Node n, bool pol);
- bool isEntailed( Node n, bool pol );
+ private:
+ friend class TheorySetsPrivate;
+ friend class TheorySetsScrutinize;
+ friend class TheorySetsRels;
-};/* class TheorySets */
+ std::unique_ptr<TheorySetsPrivate> d_internal;
+}; /* class TheorySets */
}/* CVC4::theory::sets namespace */
}/* CVC4::theory namespace */
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback