summaryrefslogtreecommitdiff
path: root/src/theory/theory.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/theory/theory.h')
-rw-r--r--src/theory/theory.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/theory/theory.h b/src/theory/theory.h
index 40f72dafc..9ac07d849 100644
--- a/src/theory/theory.h
+++ b/src/theory/theory.h
@@ -619,7 +619,7 @@ public:
/** Add the theory to the set. If no set specified, just returns a singleton set */
static inline Set setRemove(TheoryId theory, Set set = 0) {
- return set ^ (1 << theory);
+ return setDifference(set, setInsert(theory));
}
/** Check if the set contains the theory */
@@ -656,13 +656,15 @@ public:
return ss.str();
}
+ typedef context::CDList<Assertion>::const_iterator assertions_iterator;
+
/**
* Provides access to the facts queue, primarily intended for theory
* debugging purposes.
*
* @return the iterator to the beginning of the fact queue
*/
- context::CDList<Assertion>::const_iterator facts_begin() const {
+ assertions_iterator facts_begin() const {
return d_facts.begin();
}
@@ -672,17 +674,19 @@ public:
*
* @return the iterator to the end of the fact queue
*/
- context::CDList<Assertion>::const_iterator facts_end() const {
+ assertions_iterator facts_end() const {
return d_facts.end();
}
+ typedef context::CDList<TNode>::const_iterator shared_terms_iterator;
+
/**
* Provides access to the shared terms, primarily intended for theory
* debugging purposes.
*
* @return the iterator to the beginning of the shared terms list
*/
- context::CDList<TNode>::const_iterator shared_terms_begin() const {
+ shared_terms_iterator shared_terms_begin() const {
return d_sharedTerms.begin();
}
@@ -692,7 +696,7 @@ public:
*
* @return the iterator to the end of the shared terms list
*/
- context::CDList<TNode>::const_iterator shared_terms_end() const {
+ shared_terms_iterator shared_terms_end() const {
return d_sharedTerms.end();
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback