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

Method addExecInput

libchigraph/src/GraphFunction.cpp:301–312  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

299}
300
301void GraphFunction::addExecInput(std::string name, size_t addBefore) {
302 // invalidate the cache
303 module().updateLastEditTime();
304
305 if (addBefore < mExecInputs.size()) {
306 // +1 because emplace adds before
307 mExecInputs.emplace(mExecInputs.cbegin() + addBefore, std::move(name));
308 } else {
309 mExecInputs.emplace_back(std::move(name));
310 }
311 updateEntries();
312}
313
314void GraphFunction::removeExecInput(size_t idx) {
315 // invalidate the cache

Callers 1

Calls 1

updateLastEditTimeMethod · 0.80

Tested by

no test coverage detected