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

Method GetFeatureIds

generator/gen_mwm_info.cpp:44–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44std::vector<uint32_t> OsmID2FeatureID::GetFeatureIds(CompositeId const & id) const
45{
46 std::vector<uint32_t> ids;
47 auto it = std::lower_bound(std::cbegin(m_data), std::cend(m_data), id,
48 [](auto const & l, auto const & r) { return l.first < r; });
49 while (it != std::cend(m_data) && it->first == id)
50 ids.emplace_back((it++)->second);
51
52 return ids;
53}
54
55std::vector<uint32_t> OsmID2FeatureID::GetFeatureIds(base::GeoObjectId mainId) const
56{

Callers 2

GetFeatureCenterMethod · 0.80
UNIT_TESTFunction · 0.80

Calls 3

cbeginFunction · 0.85
cendFunction · 0.85
emplace_backMethod · 0.45

Tested by 1

UNIT_TESTFunction · 0.64