MCPcopy Create free account
hub / github.com/chigraph/chigraph / GraphFunction

Method GraphFunction

libchigraph/src/GraphFunction.cpp:25–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23
24namespace chi {
25GraphFunction::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
38NodeInstance* GraphFunction::nodeByID(const boost::uuids::uuid& id) const {
39 auto iter = nodes().find(id);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected