summaryrefslogtreecommitdiffhomepage
path: root/flowgraph/storage.h
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2020-11-16 12:48:44 +0100
committerRoland Reichwein <mail@reichwein.it>2020-11-16 12:48:44 +0100
commitc9cb051fae190acfc36813e4a23759fb9b9c3df3 (patch)
treefcd8c93cd5dc2a3272eac253b0291611e16ea13f /flowgraph/storage.h
parent300219dc8519720a36525c7b40c6a327580fe0bd (diff)
Implement hierarchical evaluation (WIP)
Diffstat (limited to 'flowgraph/storage.h')
-rw-r--r--flowgraph/storage.h5
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;
};