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

Method nodePortIsEmpty

QtNodeEditor/src/NodeConnectionInteraction.cpp:226–238  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

224
225
226bool
227NodeConnectionInteraction::
228nodePortIsEmpty(PortType portType, PortIndex portIndex) const
229{
230 NodeState const & nodeState = _node->nodeState();
231
232 auto const & entries = nodeState.getEntries(portType);
233
234 if (entries[portIndex].empty()) return true;
235
236 const auto outPolicy = _node->nodeDataModel()->portOutConnectionPolicy(portIndex);
237 return ( portType == PortType::Out && outPolicy == NodeDataModel::ConnectionPolicy::Many);
238}

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected