diff options
author | Dejan Jovanović <dejan.jovanovic@gmail.com> | 2011-09-15 06:53:33 +0000 |
---|---|---|
committer | Dejan Jovanović <dejan.jovanovic@gmail.com> | 2011-09-15 06:53:33 +0000 |
commit | 72f552ead344b13d90832222157b970ae3dec8ff (patch) | |
tree | b02854356d5c5f98b3873f858f38b6762135bdc1 /src/expr | |
parent | 62a50760346e130345b24e8a14ad0dac0dca5d38 (diff) |
additional stuff for sharing,
Diffstat (limited to 'src/expr')
-rw-r--r-- | src/expr/kind_template.h | 6 |
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} |