diff options
author | Roland Reichwein <mail@reichwein.it> | 2020-11-09 09:50:58 +0100 |
---|---|---|
committer | Roland Reichwein <mail@reichwein.it> | 2020-11-09 09:50:58 +0100 |
commit | 1ac8ab06e9aad3b6d22685255459d71cb49e1f28 (patch) | |
tree | 95e4ca7de492180aef9d459ee40663b1bf134b66 /flowgraph/data.h | |
parent | db0654fa48ddc07e6bcaaaeddfa301a32806dadc (diff) |
First program: Can add 2 integers and return result via exit code
Diffstat (limited to 'flowgraph/data.h')
-rw-r--r-- | flowgraph/data.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/flowgraph/data.h b/flowgraph/data.h index 1ed4964..abf046d 100644 --- a/flowgraph/data.h +++ b/flowgraph/data.h @@ -8,7 +8,7 @@ namespace FlowGraph { // Explicitely not including size - enum class DataType + enum class DataType: int { Size, Int, @@ -27,8 +27,9 @@ namespace FlowGraph { class Data { public: - Data(DataType type, std::shared_ptr<Storage> storage):m_type(type) {} + Data(DataType type, std::shared_ptr<Storage> storage): m_type(type), m_storage(storage) {} DataType type() const { return m_type; } + std::shared_ptr<Storage> storage() { return m_storage; } private: const DataType m_type; std::shared_ptr<Storage> m_storage; |