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

Method AttachToGroup

libs/search/bookmarks/processor.cpp:165–175  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163}
164
165void Processor::AttachToGroup(Id const & id, GroupId const & group)
166{
167 auto const it = m_idToGroup.find(id);
168 if (it != m_idToGroup.end())
169 LOG(LWARNING, ("Tried to attach bookmark", id, "to group", group, "but it already belongs to group", it->second));
170
171 m_idToGroup[id] = group;
172 m_bookmarksInGroup[group].insert(id);
173 if (m_indexableGroups.count(group) > 0)
174 AddToIndex(id);
175}
176
177void Processor::DetachFromGroup(Id const & id, GroupId const & group)
178{

Callers 1

Calls 5

AddToIndexFunction · 0.85
findMethod · 0.45
endMethod · 0.45
insertMethod · 0.45
countMethod · 0.45

Tested by

no test coverage detected