MCPcopy Create free account
hub / github.com/comaps/comaps / operator()

Method operator()

libs/drape_frontend/render_group.cpp:166–184  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

164}
165
166bool RenderGroupComparator::operator()(drape_ptr<RenderGroup> const & l, drape_ptr<RenderGroup> const & r)
167{
168 m_pendingOnDeleteFound |= (l->IsPendingOnDelete() || r->IsPendingOnDelete());
169 bool const lCanBeDeleted = l->CanBeDeleted();
170 bool const rCanBeDeleted = r->CanBeDeleted();
171
172 if (rCanBeDeleted == lCanBeDeleted)
173 {
174 auto const & lState = l->GetState();
175 auto const & rState = r->GetState();
176 auto const lDepth = GetDepthLayer(lState);
177 auto const rDepth = GetDepthLayer(rState);
178 if (lDepth != rDepth)
179 return lDepth < rDepth;
180
181 return lState < rState;
182 }
183 return rCanBeDeleted;
184}
185
186UserMarkRenderGroup::UserMarkRenderGroup(dp::RenderState const & state, TileKey const & tileKey) : TBase(state, tileKey)
187{

Callers

nothing calls this directly

Calls 4

GetDepthLayerFunction · 0.85
IsPendingOnDeleteMethod · 0.80
CanBeDeletedMethod · 0.80
GetStateMethod · 0.45

Tested by

no test coverage detected