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

Method RegisterHandler

libs/drape/vulkan/vulkan_base_context.cpp:547–555  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

545}
546
547uint32_t VulkanBaseContext::RegisterHandler(HandlerType handlerType, ContextHandler && handler)
548{
549 static uint32_t counter = 0;
550 CHECK_LESS(counter, std::numeric_limits<uint32_t>::max(), ());
551 ASSERT(handler != nullptr, ());
552 uint32_t const id = ++counter;
553 m_handlers[static_cast<uint32_t>(handlerType)].emplace_back(std::make_pair(id, std::move(handler)));
554 return id;
555}
556
557void VulkanBaseContext::UnregisterHandler(uint32_t id)
558{

Callers 1

Calls 2

ASSERTFunction · 0.85
emplace_backMethod · 0.45

Tested by

no test coverage detected