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

Method GetFeature

libs/routing/data_source.hpp:127–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125 }
126
127 std::unique_ptr<FeatureType> GetFeature(FeatureID const & id)
128 {
129 bool found = false;
130 auto & ptr = m_featureSources.Find(id.m_mwmId, found);
131 if (!found)
132 ptr = m_dataSource.CreateFeatureSource(GetHandle(id.m_mwmId));
133
134 /// @todo Should we also retrieve "modified" features here?
135 return ptr->GetOriginalFeature(id.m_index);
136 }
137};
138} // namespace routing

Callers

nothing calls this directly

Calls 3

CreateFeatureSourceMethod · 0.80
GetOriginalFeatureMethod · 0.80
FindMethod · 0.45

Tested by

no test coverage detected