MCPcopy Create free account
hub / github.com/COVESA/vsomeip / equals

Method equals

implementation/service_discovery/src/ip_option_impl.cpp:24–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22ip_option_impl::~ip_option_impl() { }
23
24bool ip_option_impl::equals(const option_impl& _other) const {
25 bool is_equal(option_impl::equals(_other));
26
27 if (is_equal) {
28 const ip_option_impl& its_other = dynamic_cast<const ip_option_impl&>(_other);
29 is_equal = (protocol_ == its_other.protocol_ && port_ == its_other.port_);
30 }
31 return is_equal;
32}
33
34unsigned short ip_option_impl::get_port() const {
35 return port_;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected