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

Method update

io/private/ept/FixedPointLayout.cpp:42–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40{
41
42bool FixedPointLayout::update(Dimension::Detail dimDetail,
43 const std::string& name)
44{
45 if (m_finalized)
46 return m_propIds.count(name);
47
48 if (!Utils::contains(m_used, dimDetail.id()))
49 {
50 dimDetail.setOffset(m_pointSize);
51
52 m_pointSize += dimDetail.size();
53 m_used.push_back(dimDetail.id());
54 m_detail[Utils::toNative(dimDetail.id())] = dimDetail;
55
56 return true;
57 }
58
59 return false;
60}
61
62void FixedPointLayout::registerFixedDim(const Dimension::Id id,
63 const Dimension::Type type)

Callers

nothing calls this directly

Calls 5

containsFunction · 0.50
toNativeFunction · 0.50
idMethod · 0.45
setOffsetMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected