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

Method processOne

filters/ExpressionStatsFilter.cpp:118–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116
117
118bool ExpressionStatsFilter::processOne(PointRef& point)
119{
120 double value = point.getFieldAs<double>(m_dimId);
121
122 for(const auto& expr: m_args->m_expressions)
123 {
124 bool status = expr.eval(point);
125 auto& stat = m_stats[expr.print()];
126 if (status)
127 stat[value]++;
128 }
129 return true;
130}
131
132
133void ExpressionStatsFilter::filter(PointView& view)

Callers

nothing calls this directly

Calls 2

evalMethod · 0.45
printMethod · 0.45

Tested by

no test coverage detected