summaryrefslogtreecommitdiff
path: root/src/generic/problemresolver/incremental_expression.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/generic/problemresolver/incremental_expression.h')
-rw-r--r--src/generic/problemresolver/incremental_expression.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/generic/problemresolver/incremental_expression.h b/src/generic/problemresolver/incremental_expression.h
index 6391c4c1..6fb4f351 100644
--- a/src/generic/problemresolver/incremental_expression.h
+++ b/src/generic/problemresolver/incremental_expression.h
@@ -312,6 +312,17 @@ public:
else
return T();
}
+
+ /** \brief Write this expression to the given stream.
+ *
+ * The default implementation writes nothing if the child is
+ * invalid, and writes the child if the child is valid.
+ */
+ void dump(std::ostream &out)
+ {
+ if(get_child().valid())
+ get_child()->dump(out);
+ }
};
/** \brief Base class for N-ary containers that support adding and