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

Method addExecOutput

libchigraph/src/GraphFunction.cpp:330–341  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

328}
329
330void GraphFunction::addExecOutput(std::string name, size_t addBefore) {
331 // invalidate the cache
332 module().updateLastEditTime();
333
334 if (addBefore < mExecOutputs.size()) {
335 // +1 because emplace adds before
336 mExecOutputs.emplace(mExecOutputs.cbegin() + addBefore, std::move(name));
337 } else {
338 mExecOutputs.emplace_back(std::move(name));
339 }
340 updateExits();
341}
342
343void GraphFunction::removeExecOutput(size_t idx) {
344 // invalidate the cache

Callers 1

Calls 1

updateLastEditTimeMethod · 0.80

Tested by

no test coverage detected