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

Method GetBookmarkForEdit

libs/map/bookmark_manager.cpp:366–378  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

364}
365
366Bookmark * BookmarkManager::GetBookmarkForEdit(kml::MarkId markId)
367{
368 CHECK_THREAD_CHECKER(m_threadChecker, ());
369 auto it = m_bookmarks.find(markId);
370 if (it == m_bookmarks.end())
371 return nullptr;
372
373 auto const groupId = it->second->GetGroupId();
374 if (groupId != kml::kInvalidMarkGroupId)
375 m_changesTracker.OnUpdateMark(markId);
376
377 return it->second.get();
378}
379
380void BookmarkManager::AttachBookmark(kml::MarkId bmId, kml::MarkGroupId catId)
381{

Callers 2

InferVisibilityMethod · 0.80
UNIT_CLASS_TESTFunction · 0.80

Calls 5

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

Tested by 1

UNIT_CLASS_TESTFunction · 0.64