xo-exprssion: + Expression::xform_layer()

This commit is contained in:
Roland Conybeare 2024-07-03 14:11:02 -04:00
commit 1d99757bca
8 changed files with 72 additions and 4 deletions

View file

@ -56,6 +56,10 @@ namespace xo {
return 1;
}
virtual ref::rp<Expression> xform_layer(TransformFn xform_fn) override {
return xform_fn(this);
}
virtual void display(std::ostream & os) const override {
os << "<Constant"
<< xtag("type", value_td_->short_name())