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

Method addDataInput

libchigraph/src/GraphFunction.cpp:212–222  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

210}
211
212void GraphFunction::addDataInput(const DataType& type, std::string name, size_t addBefore) {
213 // invalidate the cache
214 module().updateLastEditTime();
215
216 if (addBefore < mDataInputs.size()) {
217 mDataInputs.emplace(mDataInputs.cbegin() + addBefore, std::move(name), type);
218 } else {
219 mDataInputs.emplace_back(std::move(name), type);
220 }
221 updateEntries();
222}
223
224void GraphFunction::removeDataInput(size_t idx) {
225 // invalidate the cache

Callers 1

Calls 1

updateLastEditTimeMethod · 0.80

Tested by

no test coverage detected