From 927eb99e75325164a541c2638e1e607294019381 Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Tue, 17 Nov 2020 12:38:40 +0100 Subject: Complete hierarchical evaluation (unittest and systemtest fixed) --- flowgraph/storage.h | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'flowgraph/storage.h') diff --git a/flowgraph/storage.h b/flowgraph/storage.h index 27c201e..7b5c53b 100644 --- a/flowgraph/storage.h +++ b/flowgraph/storage.h @@ -5,6 +5,7 @@ #include "scope.h" #include +#include #include #include @@ -23,7 +24,7 @@ namespace FlowGraph { class Constant: public Storage { public: - Constant(std::vector& value): m_value(value) {} // little endian data + Constant(const std::vector& value): m_value(value) {} // little endian data const std::vector& value() const { return m_value; } private: std::vector m_value; @@ -42,12 +43,10 @@ namespace FlowGraph { class LocalStorage : public Storage { public: - LocalStorage(LocalScope& scope, const std::string& name): m_name(name), m_scope(scope) {} + LocalStorage(const std::string& name); const std::string& name() const { return m_name; } - index_t indexOfStorage() const; private: std::string m_name; - LocalScope& m_scope; }; // intermediate results, anonymous values @@ -55,11 +54,7 @@ namespace FlowGraph { class TemporaryStorage : public Storage { public: - TemporaryStorage(LocalScope& scope); - std::string name() const; - index_t indexOfStorage() const; - private: - LocalScope& m_scope; + TemporaryStorage(); }; // dereferenced pointer -- cgit v1.2.3