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

Method FindResource

libs/drape/symbols_texture.cpp:238–249  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

236}
237
238ref_ptr<Texture::ResourceInfo> SymbolsTexture::FindResource(Texture::Key const & key, bool & newResource)
239{
240 newResource = false;
241 if (key.GetType() != Texture::ResourceType::Symbol)
242 return nullptr;
243
244 std::string const & symbolName = static_cast<SymbolKey const &>(key).GetSymbolName();
245
246 auto it = m_definition.find(symbolName);
247 ASSERT(it != m_definition.end(), (symbolName));
248 return make_ref(&it->second);
249}
250
251void SymbolsTexture::Fail(ref_ptr<dp::GraphicsContext> context)
252{

Callers

nothing calls this directly

Calls 6

ASSERTFunction · 0.85
make_refFunction · 0.85
GetSymbolNameMethod · 0.80
GetTypeMethod · 0.45
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected