| 24 | using PortIndex = int; |
| 25 | |
| 26 | struct Port |
| 27 | { |
| 28 | PortType type; |
| 29 | |
| 30 | PortIndex index; |
| 31 | |
| 32 | Port() |
| 33 | : type(PortType::None) |
| 34 | , index(INVALID) |
| 35 | {} |
| 36 | |
| 37 | Port(PortType t, PortIndex i) |
| 38 | : type(t) |
| 39 | , index(i) |
| 40 | {} |
| 41 | |
| 42 | bool |
| 43 | indexIsValid() { return index != INVALID; } |
| 44 | |
| 45 | bool |
| 46 | portTypeIsValid() { return type != PortType::None; } |
| 47 | }; |
| 48 | |
| 49 | //using PortAddress = std::pair<QUuid, PortIndex>; |
| 50 |
nothing calls this directly
no outgoing calls
no test coverage detected