| 328 | } |
| 329 | |
| 330 | void 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 | |
| 343 | void GraphFunction::removeExecOutput(size_t idx) { |
| 344 | // invalidate the cache |
no test coverage detected