| 23 | |
| 24 | namespace chi { |
| 25 | GraphFunction::GraphFunction(GraphModule& mod, std::string name, std::vector<NamedDataType> dataIns, |
| 26 | std::vector<NamedDataType> dataOuts, std::vector<std::string> execIns, |
| 27 | std::vector<std::string> execOuts) |
| 28 | : mModule{&mod}, |
| 29 | mContext{&mod.context()}, |
| 30 | mName{std::move(name)}, |
| 31 | mDataInputs(std::move(dataIns)), |
| 32 | mDataOutputs(std::move(dataOuts)), |
| 33 | mExecInputs(std::move(execIns)), |
| 34 | mExecOutputs(std::move(execOuts)) { |
| 35 | // TODO(#66): check that it has at least 1 exec input and output |
| 36 | } |
| 37 | |
| 38 | NodeInstance* GraphFunction::nodeByID(const boost::uuids::uuid& id) const { |
| 39 | auto iter = nodes().find(id); |
nothing calls this directly
no outgoing calls
no test coverage detected