MCPcopy Create free account
hub / github.com/PDAL/PDAL / read

Method read

io/Ilvis2Reader.cpp:276–293  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

274
275
276point_count_t Ilvis2Reader::read(PointViewPtr view, point_count_t count)
277{
278 PointId idx = view->size();
279 point_count_t numRead = 0;
280
281 PointRef point = PointRef(*view, 0);
282 while (numRead < count)
283 {
284 point.setPointId(idx++);
285 if (!processOne(point))
286 break;
287 if (m_cb)
288 m_cb(*view, idx);
289 numRead++;
290 }
291
292 return numRead;
293}
294
295
296void Ilvis2Reader::done(PointTableRef table)

Callers

nothing calls this directly

Calls 4

processOneFunction · 0.85
setPointIdMethod · 0.80
PointRefClass · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected