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

Method equals

implementation/service_discovery/src/load_balancing_option_impl.cpp:22–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20load_balancing_option_impl::~load_balancing_option_impl() { }
21
22bool load_balancing_option_impl::equals(const option_impl& _other) const {
23 bool is_equal(option_impl::equals(_other));
24
25 if (is_equal) {
26 const load_balancing_option_impl& its_other = dynamic_cast<const load_balancing_option_impl&>(_other);
27 is_equal = (priority_ == its_other.priority_ && weight_ == its_other.weight_);
28 }
29
30 return is_equal;
31}
32
33priority_t load_balancing_option_impl::get_priority() const {
34 return priority_;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected