summaryrefslogtreecommitdiff
path: root/src/theory/rep_set.h
diff options
context:
space:
mode:
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>2012-10-09 21:59:58 +0000
committerAndrew Reynolds <andrew.j.reynolds@gmail.com>2012-10-09 21:59:58 +0000
commita957f6f97f2e83d29f6c5d66f01e40f588ad95c5 (patch)
tree8b95b65fad71aab9b0baee4b6bfc976b731f9502 /src/theory/rep_set.h
parentdba60e91f02ae9ca3c3126c76d79a09c95f95a45 (diff)
fixed datatypes rewriter to detect clashes between non-datatype subfields. cleaned up model code, TheoryModel::getValue is now const.
Diffstat (limited to 'src/theory/rep_set.h')
-rw-r--r--src/theory/rep_set.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/theory/rep_set.h b/src/theory/rep_set.h
index 3427502b1..034ecea46 100644
--- a/src/theory/rep_set.h
+++ b/src/theory/rep_set.h
@@ -36,11 +36,13 @@ public:
/** clear the set */
void clear();
/** has type */
- bool hasType( TypeNode tn ) { return d_type_reps.find( tn )!=d_type_reps.end(); }
+ bool hasType( TypeNode tn ) const { return d_type_reps.find( tn )!=d_type_reps.end(); }
+ /** get cardinality for type */
+ int getNumRepresentatives( TypeNode tn ) const;
/** add representative for type */
void add( Node n );
/** returns index in d_type_reps for node n */
- int getIndexFor( Node n ) { return d_tmap.find( n )!=d_tmap.end() ? d_tmap[n] : -1; }
+ int getIndexFor( Node n ) const;
/** complete all values */
void complete( TypeNode t );
/** debug print */
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback