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

Method TranslatorsPool

generator/translators_pool.cpp:7–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5namespace generator
6{
7TranslatorsPool::TranslatorsPool(std::shared_ptr<TranslatorInterface> const & original, size_t threadCount)
8 : m_threadPool(threadCount)
9{
10 CHECK_GREATER_OR_EQUAL(threadCount, 1, ());
11
12 m_translators.Push(original);
13 for (size_t i = 1; i < threadCount; ++i)
14 m_translators.Push(original->Clone());
15}
16
17void TranslatorsPool::Emit(std::vector<OsmElement> && elements)
18{

Callers

nothing calls this directly

Calls 2

PushMethod · 0.45
CloneMethod · 0.45

Tested by

no test coverage detected