From b0ec81231bf8d10ebfebd9ff8ef1158331cf9bf0 Mon Sep 17 00:00:00 2001 From: Joseph Birkner Date: Wed, 6 May 2026 18:13:51 +0200 Subject: [PATCH] Add inline ModelNode data accessor. --- include/simfil/model/nodes.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/simfil/model/nodes.h b/include/simfil/model/nodes.h index d25da4b..b9309c4 100644 --- a/include/simfil/model/nodes.h +++ b/include/simfil/model/nodes.h @@ -282,6 +282,9 @@ struct ModelNode /// Get the node's address [[nodiscard]] inline ModelNodeAddress addr() const {return addr_;} + /// Get raw runtime payload attached to this node without triggering resolution. + [[nodiscard]] inline ScalarValueType const& runtimeData() const {return data_;} + /// True if the node points at a valid model and address. [[nodiscard]] inline bool isResolved() const {return model_ && addr_;}