summaryrefslogtreecommitdiffhomepage
path: root/flowgraph/data.cpp
blob: 8568e0ca6bd9ffa859ed320db9ff0f88c04ace68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include "data.h"

FlowGraph::Data::Data(FlowGraph::DataType type, std::shared_ptr<FlowGraph::Storage> storage):
 m_type(type), m_storage(storage)
{
}

FlowGraph::DataType FlowGraph::Data::type() const
{
 return m_type;
}

std::shared_ptr<FlowGraph::Storage> FlowGraph::Data::storage() const
{
 return m_storage;
}

bool FlowGraph::Data::operator==(const FlowGraph::Data& other) const
{
 return m_type == other.m_type && m_storage == other.m_storage;
}