Add debug graph to static network
This commit is contained in:
@@ -35,21 +35,6 @@ public:
|
||||
: std::runtime_error(std::move(msg)) {}
|
||||
};
|
||||
|
||||
// ── Channel snapshot accessor — type-erased so Network can collect them ───────
|
||||
|
||||
struct IChannelProbe {
|
||||
virtual ~IChannelProbe() = default;
|
||||
virtual ChannelSnapshot snapshot() const = 0;
|
||||
};
|
||||
|
||||
template<typename T>
|
||||
struct ChannelProbe : IChannelProbe {
|
||||
const Channel<T>& ch;
|
||||
std::string name;
|
||||
ChannelProbe(const Channel<T>& c, std::string n) : ch(c), name(std::move(n)) {}
|
||||
ChannelSnapshot snapshot() const override { return ch.snapshot(name); }
|
||||
};
|
||||
|
||||
// ── Network ───────────────────────────────────────────────────────────────────
|
||||
|
||||
class Network : public INode {
|
||||
|
||||
Reference in New Issue
Block a user