MCPcopy Create free account
hub / github.com/comaps/comaps / AreObjectsEqualIgnoringStreet

Function AreObjectsEqualIgnoringStreet

libs/indexer/editable_map_object.cpp:1037–1058  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1035}
1036
1037bool AreObjectsEqualIgnoringStreet(EditableMapObject const & lhs, EditableMapObject const & rhs)
1038{
1039 feature::TypesHolder const & lhsTypes = lhs.GetTypes();
1040 feature::TypesHolder const & rhsTypes = rhs.GetTypes();
1041
1042 if (!lhsTypes.Equals(rhsTypes))
1043 return false;
1044
1045 if (lhs.GetHouseNumber() != rhs.GetHouseNumber())
1046 return false;
1047
1048 if (lhs.GetCuisines() != rhs.GetCuisines())
1049 return false;
1050
1051 if (!lhs.m_metadata.Equals(rhs.m_metadata))
1052 return false;
1053
1054 if (lhs.GetNameMultilang() != rhs.GetNameMultilang())
1055 return false;
1056
1057 return true;
1058}
1059
1060} // namespace osm

Callers 1

SaveEditedFeatureMethod · 0.85

Calls 4

GetHouseNumberMethod · 0.80
GetCuisinesMethod · 0.80
GetTypesMethod · 0.45
EqualsMethod · 0.45

Tested by

no test coverage detected