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

Function getOrAddPoint

pdal/PointView.hpp:327–336  ·  view source on GitHub ↗

Provides access to the memory storing the point data. Though this function is public, other access methods are safer and preferred.

Source from the content-addressed store, hash-verified

325 /// Provides access to the memory storing the point data. Though this
326 /// function is public, other access methods are safer and preferred.
327 char *getOrAddPoint(PointId id)
328 {
329 if (id == size())
330 {
331 m_index.push_back(m_pointTable.addPoint());
332 ++m_size;
333 }
334
335 return m_pointTable.getPoint(m_index.at(id));
336 }
337
338 MetadataNode toMetadata() const;
339

Callers

nothing calls this directly

Calls 4

atMethod · 0.80
sizeFunction · 0.70
addPointMethod · 0.45
getPointMethod · 0.45

Tested by

no test coverage detected