diff options
Diffstat (limited to 'flowgraph/data.h')
-rw-r--r-- | flowgraph/data.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/flowgraph/data.h b/flowgraph/data.h index d1c2588..e2def93 100644 --- a/flowgraph/data.h +++ b/flowgraph/data.h @@ -27,9 +27,10 @@ namespace FlowGraph { class Data { public: - 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; } + Data(DataType type, std::shared_ptr<Storage> storage); + DataType type() const; + std::shared_ptr<Storage> storage() const; + bool operator==(const Data& other) const; private: const DataType m_type; std::shared_ptr<Storage> m_storage; |