MCPcopy Create free account
hub / github.com/BehaviorTree/Groot / removeNode

Method removeNode

QtNodeEditor/src/FlowScene.cpp:254–274  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

252
253
254void
255FlowScene::
256removeNode(Node& node)
257{
258 // call signal
259 nodeDeleted(node);
260
261 for(auto portType: {PortType::In,PortType::Out})
262 {
263 auto nodeState = node.nodeState();
264 auto const & nodeEntries = nodeState.getEntries(portType);
265
266 for (auto &connections : nodeEntries)
267 {
268 for (auto const &pair : connections)
269 deleteConnection(*pair.second);
270 }
271 }
272
273 _nodes.erase(node.id());
274}
275
276
277DataModelRegistry&

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected