diff options
Diffstat (limited to 'flowgraph/storage.h')
-rw-r--r-- | flowgraph/storage.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/flowgraph/storage.h b/flowgraph/storage.h index 7f648b0..27c201e 100644 --- a/flowgraph/storage.h +++ b/flowgraph/storage.h @@ -42,10 +42,12 @@ namespace FlowGraph { class LocalStorage : public Storage { public: - LocalStorage(LocalScope& scope, const std::string& name): m_name(name) {} + LocalStorage(LocalScope& scope, const std::string& name): m_name(name), m_scope(scope) {} 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,6 +57,7 @@ namespace FlowGraph { public: TemporaryStorage(LocalScope& scope); std::string name() const; + index_t indexOfStorage() const; private: LocalScope& m_scope; }; |