summaryrefslogtreecommitdiff
path: root/src/expr/expr.h
diff options
context:
space:
mode:
authorMorgan Deters <mdeters@gmail.com>2009-12-08 10:10:20 +0000
committerMorgan Deters <mdeters@gmail.com>2009-12-08 10:10:20 +0000
commit2163539a8b839acf98bda0e1a65f1fcca5232fb2 (patch)
tree207a09896626f678172ec774459defa6690b0200 /src/expr/expr.h
parentabe5fb451ae66a4bedc88d870e99f76de4eb323c (diff)
work on propositional layer, expression builder support for large expressions, output classes, and minisat
Diffstat (limited to 'src/expr/expr.h')
-rw-r--r--src/expr/expr.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/expr/expr.h b/src/expr/expr.h
index a16ffee13..013888baa 100644
--- a/src/expr/expr.h
+++ b/src/expr/expr.h
@@ -60,19 +60,23 @@ class CVC4_PUBLIC Expr {
public:
/** Default constructor, makes a null expression. */
- CVC4_PUBLIC Expr();
+ Expr();
- CVC4_PUBLIC Expr(const Expr&);
+ Expr(const Expr&);
/** Destructor. Decrements the reference count and, if zero,
* collects the ExprValue. */
- CVC4_PUBLIC ~Expr();
+ ~Expr();
- Expr& operator=(const Expr&) CVC4_PUBLIC;
+ bool operator==(const Expr& e) const { return d_ev == e.d_ev; }
+ bool operator!=(const Expr& e) const { return d_ev != e.d_ev; }
+ bool operator<(const Expr& e) const { return d_ev < e.d_ev; }// for map key
+
+ Expr& operator=(const Expr&);
/** Access to the encapsulated expression.
* @return the encapsulated expression. */
- ExprValue* operator->() const CVC4_PUBLIC;
+ ExprValue* operator->() const;
uint64_t hash() const;
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback