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

Method cmp

dds/DCPS/XTypes/DynamicTypeSupport.cpp:134–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

132 {}
133
134 int cmp(void* lhs, void* rhs) const
135 {
136 const XTypes::DynamicSample& left = *static_cast<XTypes::DynamicSample*>(lhs);
137 const XTypes::DynamicSample& right = *static_cast<XTypes::DynamicSample*>(rhs);
138 const DDS::DynamicData_var l(left.dynamic_data()), r(right.dynamic_data());
139 const DDS::MemberId id = l->get_member_id_by_name(field_.c_str());
140 int result;
141 if (XTypes::compare_members(result, l, r, id) != DDS::RETCODE_OK) {
142 return 1; // warning already logged
143 }
144 return result;
145 }
146
147 bool less(void* lhs, void* rhs) const
148 {

Callers

nothing calls this directly

Calls 2

compare_membersFunction · 0.85
get_member_id_by_nameMethod · 0.45

Tested by

no test coverage detected