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

Method GetTrackForEdit

libs/map/bookmark_manager.cpp:491–503  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

489}
490
491Track * BookmarkManager::GetTrackForEdit(kml::TrackId trackId)
492{
493 CHECK_THREAD_CHECKER(m_threadChecker, ());
494 auto it = m_tracks.find(trackId);
495 if (it == m_tracks.end())
496 return nullptr;
497
498 auto const groupId = it->second->GetGroupId();
499 if (groupId != kml::kInvalidTrackId)
500 m_changesTracker.OnUpdateLine(trackId);
501
502 return it->second.get();
503}
504
505void BookmarkManager::MoveTrack(kml::TrackId trackID, kml::MarkGroupId curGroupID, kml::MarkGroupId newGroupID)
506{

Callers

nothing calls this directly

Calls 5

OnUpdateLineMethod · 0.80
getMethod · 0.65
findMethod · 0.45
endMethod · 0.45
GetGroupIdMethod · 0.45

Tested by

no test coverage detected