MCPcopy Create free account
hub / github.com/OpenDDS/OpenDDS / compare

Method compare

dds/DCPS/XTypes/DynamicSample.cpp:108–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106}
107
108bool DynamicSample::compare(const Sample& other) const
109{
110 const DynamicSample* const other_same_kind = dynamic_cast<const DynamicSample*>(&other);
111 OPENDDS_ASSERT(other_same_kind);
112 bool is_less_than = false;
113 DDS::ReturnCode_t rc = key_less_than(is_less_than, data_, other_same_kind->data_);
114 if (rc != DDS::RETCODE_OK) {
115 if (log_level >= LogLevel::Warning) {
116 ACE_ERROR((LM_WARNING, "(%P|%t) WARNING: DynamicSample::compare: "
117 "key_less_than returned %C\n", retcode_to_string(rc)));
118 }
119 }
120 return is_less_than;
121}
122
123}
124}

Callers 4

check_class_versionsMethod · 0.45
operator()Method · 0.45
operator()Method · 0.45

Calls 2

key_less_thanFunction · 0.85
retcode_to_stringFunction · 0.85

Tested by

no test coverage detected