pretty printing -- copmlete for xo::ast::GeneralizedExpression

This commit is contained in:
Roland Conybeare 2025-07-19 11:47:03 -05:00
commit 2e0846823b
67 changed files with 1230 additions and 478 deletions

View file

@ -218,6 +218,8 @@ namespace xo {
/* synonym for .advance_one_event() */
virtual std::uint64_t run_one() override;
virtual void display(std::ostream & os) const override;
private:
explicit Simulator(utc_nanos t0);

View file

@ -543,6 +543,16 @@ namespace xo {
return n;
} /*run_throttled_until*/
void
Simulator::display(std::ostream & os) const
{
os << "<Simulator"
<< xtag("sim_heap.size", sim_heap_.size())
<< xtag("n_event", n_event_)
<< xtag("src_v.size", src_v_.size())
<< ">";
} /*display*/
} /*namespace sim*/
} /*namespace xo*/