OSSIA
Open Scenario System for Interactive Application
port_index.hpp
1 #pragma once
2 #include <cinttypes>
3 
4 namespace ossia::gfx
5 {
6 struct port_index
7 {
8  int32_t node{};
9  int32_t port{};
10 
11  constexpr auto operator==(port_index other) const noexcept
12  {
13  return node == other.node && port == other.port;
14  }
15  constexpr auto operator!=(port_index other) const noexcept
16  {
17  return node != other.node || port != other.port;
18  }
19  constexpr auto operator<(port_index other) const noexcept
20  {
21  return node < other.node || (node == other.node && port < other.port);
22  }
23 };
24 }