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

Method SetPreparingState

libs/map/search_mark.cpp:536–548  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

534}
535
536void SearchMarks::SetPreparingState(std::vector<FeatureID> const & features, bool isPreparing)
537{
538 if (features.empty())
539 return;
540
541 ProcessMarks([&features, isPreparing](SearchMarkPoint * mark) -> base::ControlFlow
542 {
543 ASSERT(std::is_sorted(features.cbegin(), features.cend()), ());
544 if (std::binary_search(features.cbegin(), features.cend(), mark->GetFeatureID()))
545 mark->SetPreparing(isPreparing);
546 return base::ControlFlow::Continue;
547 });
548}
549
550void SearchMarks::SetSales(std::vector<FeatureID> const & features, bool hasSale)
551{

Callers

nothing calls this directly

Calls 6

ASSERTFunction · 0.85
SetPreparingMethod · 0.80
emptyMethod · 0.45
cbeginMethod · 0.45
cendMethod · 0.45
GetFeatureIDMethod · 0.45

Tested by

no test coverage detected