| 190 | } |
| 191 | |
| 192 | Result GraphFunction::getOrInsertEntryNode(float x, float y, boost::uuids::uuid id, |
| 193 | NodeInstance** toFill) { |
| 194 | Result res; |
| 195 | |
| 196 | if (auto ent = entryNode()) { |
| 197 | if (toFill != nullptr) { *toFill = ent; } |
| 198 | return res; |
| 199 | } |
| 200 | |
| 201 | // invalidate the cache |
| 202 | module().updateLastEditTime(); |
| 203 | |
| 204 | std::unique_ptr<NodeType> entryNodeType; |
| 205 | res += createEntryNodeType(&entryNodeType); |
| 206 | |
| 207 | res += insertNode(std::move(entryNodeType), x, y, id, toFill); |
| 208 | |
| 209 | return res; |
| 210 | } |
| 211 | |
| 212 | void GraphFunction::addDataInput(const DataType& type, std::string name, size_t addBefore) { |
| 213 | // invalidate the cache |
no test coverage detected