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

Method GetFeaturesByStatus

libs/editor/osm_editor.cpp:494–508  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

492}
493
494std::vector<uint32_t> Editor::GetFeaturesByStatus(MwmId const & mwmId, FeatureStatus status) const
495{
496 auto const features = m_features.Get();
497
498 std::vector<uint32_t> result;
499 auto const matchedMwm = features->find(mwmId);
500 if (matchedMwm == features->cend())
501 return result;
502
503 for (auto const & index : matchedMwm->second)
504 if (index.second.m_status == status)
505 result.push_back(index.first);
506 std::sort(result.begin(), result.end());
507 return result;
508}
509
510EditableProperties Editor::GetEditableProperties(FeatureType & feature) const
511{

Callers 2

EditedFeaturesHolderMethod · 0.80

Calls 6

GetMethod · 0.45
findMethod · 0.45
cendMethod · 0.45
push_backMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by 1