summaryrefslogtreecommitdiff
path: root/src/expr/expr_manager_template.cpp
diff options
context:
space:
mode:
authorDejan Jovanović <dejan.jovanovic@gmail.com>2010-04-28 19:51:34 +0000
committerDejan Jovanović <dejan.jovanovic@gmail.com>2010-04-28 19:51:34 +0000
commit2482b19ea90183d5040390b87877b7593021032c (patch)
tree60ec02c9fdb749b977fea1617706bcfca9234296 /src/expr/expr_manager_template.cpp
parentd708e8c696c1596296692cf5d574290ece2643bf (diff)
adding integer and real types to the public interface
Diffstat (limited to 'src/expr/expr_manager_template.cpp')
-rw-r--r--src/expr/expr_manager_template.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/expr/expr_manager_template.cpp b/src/expr/expr_manager_template.cpp
index 5d50dd100..3480cc0e6 100644
--- a/src/expr/expr_manager_template.cpp
+++ b/src/expr/expr_manager_template.cpp
@@ -56,6 +56,16 @@ KindType ExprManager::kindType() const {
return Type(d_nodeManager, new TypeNode(d_nodeManager->kindType()));
}
+RealType ExprManager::realType() const {
+ NodeManagerScope nms(d_nodeManager);
+ return Type(d_nodeManager, new TypeNode(d_nodeManager->realType()));
+}
+
+IntegerType ExprManager::integerType() const {
+ NodeManagerScope nms(d_nodeManager);
+ return Type(d_nodeManager, new TypeNode(d_nodeManager->integerType()));
+}
+
Expr ExprManager::mkExpr(Kind kind) {
const unsigned n = 0;
CheckArgument(n >= minArity(kind) && n <= maxArity(kind), kind,
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback