MCPcopy Create free account
hub / github.com/OpenOrienteering/mapper / deleteIrregularObjects

Method deleteIrregularObjects

src/core/map.cpp:885–906  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

883}
884
885std::size_t Map::deleteIrregularObjects()
886{
887 std::size_t result = 0;
888 std::set<Object*> unhandled;
889 for (auto object : irregular_objects)
890 {
891 for (auto part : parts)
892 {
893 if (part->deleteObject(object))
894 {
895 ++result;
896 goto next_object;
897 }
898 }
899 unhandled.insert(object);
900next_object:
901 ; // nothing else
902 }
903
904 irregular_objects.swap(unhandled);
905 return result;
906}
907
908
909void Map::getSelectionToSymbolCompatibility(const Symbol* symbol, bool& out_compatible, bool& out_different) const

Callers 1

validateMethod · 0.80

Calls 2

deleteObjectMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected