| 210 | } |
| 211 | |
| 212 | void 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 | |
| 224 | void GraphFunction::removeDataInput(size_t idx) { |
| 225 | // invalidate the cache |
no test coverage detected