| 268 | } |
| 269 | |
| 270 | void GraphFunction::renameDataOutput(size_t idx, std::string newName) { |
| 271 | // invalidate the cache |
| 272 | module().updateLastEditTime(); |
| 273 | |
| 274 | if (idx < mDataOutputs.size()) { mDataOutputs[idx].name = std::move(newName); } |
| 275 | updateExits(); |
| 276 | } |
| 277 | |
| 278 | void GraphFunction::retypeDataOutput(size_t idx, DataType newType) { |
| 279 | if (idx < mDataOutputs.size()) { mDataOutputs[idx].type = std::move(newType); } |
no test coverage detected