*/
portid(__u32 ref, addr node) throw ();
+ /// Compares 2 port ids.
+ bool operator == (const portid& other) const throw ();
+
};
/**
*/
name(__u32 type, __u32 instance) throw ();
+ /// Compares 2 port names.
+ bool operator == (const name& other) const throw ();
+
};
/**
*/
nameseq(__u32 type, __u32 instance) throw ();
+ /// Compares 2 port name sequences.
+ bool operator == (const nameseq& other) const throw ();
+
};
/**
/// Set the user handle as binary data.
void handle(const char* usr_handle, size_t handle_size) throw ();
+ /// Compares 2 subscription request messages.
+ bool operator == (const subscr& other) const throw ();
+
};
/// Type of events.
node = n;
}
+inline
+bool posixx::linux::tipc::portid::operator == (
+ const posixx::linux::tipc::portid& other) const throw ()
+{
+ return memcmp(this, &other, sizeof(*this)) == 0;
+}
+
inline
posixx::linux::tipc::name::name(__u32 t, __u32 i) throw ()
{
instance = i;
}
+inline
+bool posixx::linux::tipc::name::operator == (
+ const posixx::linux::tipc::name& other) const throw ()
+{
+ return memcmp(this, &other, sizeof(*this)) == 0;
+}
+
inline
posixx::linux::tipc::nameseq::nameseq(__u32 t, __u32 low, __u32 up) throw ()
{
upper = instance;
}
+inline
+bool posixx::linux::tipc::nameseq::operator == (
+ const posixx::linux::tipc::nameseq& other) const throw ()
+{
+ return memcmp(this, &other, sizeof(*this)) == 0;
+}
+
inline
posixx::linux::tipc::subscr::subscr(nameseq s, __u32 t, __u32 f,
const char* uh) throw ()
std::memcpy(usr_handle, uh, uh_size);
}
+inline
+bool posixx::linux::tipc::subscr::operator == (const subscr& other) const
+ throw ()
+{
+ return memcmp(this, &other, sizeof(*this)) == 0;
+}
+
inline
posixx::linux::tipc::sockaddr::sockaddr() throw ()
{