2 #include <ossia/detail/config.hpp>
5 #include <ossia/network/value/value.hpp>
30 ossia::destination dest;
38 return lhs.dest == rhs.dest && lhs.message_value == rhs.message_value;
43 return lhs.dest != rhs.dest || lhs.message_value != rhs.message_value;
59 , message_value{std::move(v)}
63 : dest{d.value, d.index, u}
68 : dest{d.value, d.index, u}
69 , message_value{std::move(v)}
74 struct OSSIA_EXPORT piecewise_message
76 std::reference_wrapper<ossia::net::parameter_base> address;
77 std::vector<ossia::value> message_value;
83 friend bool operator==(
const piecewise_message& lhs,
const piecewise_message& rhs)
85 return &lhs.address.get() == &rhs.address.get()
86 && lhs.message_value == rhs.message_value && lhs.unit == rhs.unit;
89 friend bool operator!=(
const piecewise_message& lhs,
const piecewise_message& rhs)
91 return &lhs.address.get() != &rhs.address.get()
92 || lhs.message_value != rhs.message_value || lhs.unit != rhs.unit;
96 template <std::
size_t N>
97 struct piecewise_vec_message
99 std::reference_wrapper<ossia::net::parameter_base> address;
100 std::array<float, N> message_value;
102 std::bitset<N> used_values;
108 operator==(
const piecewise_vec_message& lhs,
const piecewise_vec_message& rhs)
110 return &lhs.address.get() == &rhs.address.get()
111 && lhs.message_value == rhs.message_value && lhs.unit == rhs.unit
112 && lhs.used_values == rhs.used_values;
116 operator!=(
const piecewise_vec_message& lhs,
const piecewise_vec_message& rhs)
118 return &lhs.address.get() != &rhs.address.get()
119 || lhs.message_value != rhs.message_value || lhs.unit != rhs.unit
120 || lhs.used_values != rhs.used_values;
The value class.
Definition: value.hpp:173
void launch(state_element &e)
launch Launch a state_element
Definition: state_element.cpp:18
The message struct.
Definition: message.hpp:29
Definition: dataspace.hpp:24