summaryrefslogtreecommitdiffhomepage
path: root/flowgraph/storage.h
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2020-11-14 22:06:10 +0100
committerRoland Reichwein <mail@reichwein.it>2020-11-14 22:06:10 +0100
commit9e7f4c9d43b310c280cd6432cd4150411f4b914e (patch)
treec7be57a91602c228f05ff1cab2f186dcc6635733 /flowgraph/storage.h
parent009e450626194299ee4b5ccb8463ac64e127fde6 (diff)
Added system tests
Diffstat (limited to 'flowgraph/storage.h')
-rw-r--r--flowgraph/storage.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/flowgraph/storage.h b/flowgraph/storage.h
index 28aae1e..fd3c085 100644
--- a/flowgraph/storage.h
+++ b/flowgraph/storage.h
@@ -37,15 +37,6 @@ namespace FlowGraph {
std::string m_name;
};
- class LocalStorage : public Storage
- {
- public:
- LocalStorage(const std::string& name): m_name(name) {}
- const std::string& name() const { return m_name; }
- private:
- std::string m_name;
- };
-
// Provide a context for local temporaries name generation
class LocalScope
{
@@ -56,6 +47,15 @@ namespace FlowGraph {
size_t m_index{ 0 };
};
+ class LocalStorage : public Storage
+ {
+ public:
+ LocalStorage(LocalScope& scope, const std::string& name): m_name(name) {}
+ const std::string& name() const { return m_name; }
+ private:
+ std::string m_name;
+ };
+
// intermediate results, anonymous values
// use generated name
class TemporaryStorage : public Storage