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

Method addDataOutput

libchigraph/src/GraphFunction.cpp:248–260  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

246}
247
248void GraphFunction::addDataOutput(const DataType& type, std::string name, size_t addBefore) {
249 // invalidate the cache
250 module().updateLastEditTime();
251
252 assert(addBefore >= 0);
253
254 if (addBefore < mDataOutputs.size()) {
255 mDataOutputs.emplace(mDataOutputs.cbegin() + addBefore, std::move(name), type);
256 } else {
257 mDataOutputs.emplace_back(std::move(name), type);
258 }
259 updateExits();
260}
261
262void GraphFunction::removeDataOutput(size_t idx) {
263 // invalidate the cache

Callers 1

Calls 1

updateLastEditTimeMethod · 0.80

Tested by

no test coverage detected