| 246 | } |
| 247 | |
| 248 | void GraphFunction::addDataOutput(const DataType& type, std::string name, size_t addBefore) { |
| 249 | // invalidate the cache |
| 250 | module().updateLastEditTime(); |
| 251 | |
| 252 | assert(addBefore >= 0); |
| 253 | |
| 254 | if (addBefore < mDataOutputs.size()) { |
| 255 | mDataOutputs.emplace(mDataOutputs.cbegin() + addBefore, std::move(name), type); |
| 256 | } else { |
| 257 | mDataOutputs.emplace_back(std::move(name), type); |
| 258 | } |
| 259 | updateExits(); |
| 260 | } |
| 261 | |
| 262 | void GraphFunction::removeDataOutput(size_t idx) { |
| 263 | // invalidate the cache |
no test coverage detected