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

Method nPorts

bt_editor/models/SubtreeNodeModel.hpp:20–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18 bool expanded() const { return _expanded; }
19
20 unsigned int nPorts(PortType portType) const override
21 {
22 int out_port = _expanded ? 1 : 0;
23 return portType == PortType::In ? 1:out_port;
24 }
25
26 virtual const char* className() const final { return Name(); }
27

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected