diff options
Diffstat (limited to 'src/theory/rep_set.h')
-rw-r--r-- | src/theory/rep_set.h | 6 |
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 */
|