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

Method TryReadFromQueue

generator/osm_source.cpp:191–201  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

189{}
190
191bool ProcessorOsmElementsFromXml::TryReadFromQueue(OsmElement & element)
192{
193 if (m_queue.empty())
194 return false;
195
196 element = m_queue.front();
197 m_queue.pop();
198
199 element.Validate();
200 return true;
201}
202
203bool ProcessorOsmElementsFromXml::TryRead(OsmElement & element)
204{

Callers

nothing calls this directly

Calls 4

frontMethod · 0.80
popMethod · 0.80
emptyMethod · 0.45
ValidateMethod · 0.45

Tested by

no test coverage detected