summaryrefslogtreecommitdiff
path: root/src/expr/kind_template.h
diff options
context:
space:
mode:
authorDejan Jovanović <dejan.jovanovic@gmail.com>2011-09-15 06:53:33 +0000
committerDejan Jovanović <dejan.jovanovic@gmail.com>2011-09-15 06:53:33 +0000
commit72f552ead344b13d90832222157b970ae3dec8ff (patch)
treeb02854356d5c5f98b3873f858f38b6762135bdc1 /src/expr/kind_template.h
parent62a50760346e130345b24e8a14ad0dac0dca5d38 (diff)
additional stuff for sharing,
Diffstat (limited to 'src/expr/kind_template.h')
-rw-r--r--src/expr/kind_template.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/expr/kind_template.h b/src/expr/kind_template.h
index fe1e31a7b..973163d62 100644
--- a/src/expr/kind_template.h
+++ b/src/expr/kind_template.h
@@ -127,6 +127,12 @@ ${theory_enum}
THEORY_LAST
};
+const TheoryId THEORY_FIRST = static_cast<TheoryId>(0);
+
+inline TheoryId& operator ++ (TheoryId& id) {
+ return id = static_cast<TheoryId>(((int)id) + 1);
+}
+
inline std::ostream& operator<<(std::ostream& out, TheoryId theoryId) {
switch(theoryId) {
${theory_descriptions}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback