| 299 | } |
| 300 | |
| 301 | void 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 | |
| 314 | void GraphFunction::removeExecInput(size_t idx) { |
| 315 | // invalidate the cache |
no test coverage detected