5#include "../capnp_wrapper.h"
23 std::array<DataBlockWrapper, 4> dataBlocks_;
78 const std::array<DataBlockWrapper, 4> &
dataBlocks()
const {
return dataBlocks_; }
84 std::array<DataBlockWrapper, 4> &
dataBlocksMut() {
return dataBlocks_; }
Base template class for Cap'n Proto wrappers.
Definition capnp_wrapper.h:23
Wrapper for PointGroup messages.
Definition point_group_wrapper.hpp:19
uint32_t countValidPoints() const
Count the number of valid points in the group.
void fromProto(PointGroup::Reader reader) override
Update wrapper fields from a reader.
~PointGroupWrapper() override
Destructor.
void debugString(std::ostream &os) const override
Generate a debug string representation.
std::array< DataBlockWrapper, 4 > & dataBlocksMut()
Get mutable access to the array of data blocks.
Definition point_group_wrapper.hpp:84
bool isPointValid(size_t blockIdx, size_t channelIdx) const
Check if a specific point is valid.
const PointGroupHeaderWrapper & pointGroupHeader() const
Get the point group header.
Definition point_group_wrapper.hpp:66
void toProto(PointGroup::Builder &builder) const override
Write wrapper fields to a builder.
const std::array< DataBlockWrapper, 4 > & dataBlocks() const
Get the array of data blocks.
Definition point_group_wrapper.hpp:78
void reset_data_blocks()
Reset all data blocks to their default state.
PointGroupHeaderWrapper & pointGroupHeaderMut()
Get mutable access to the point group header.
Definition point_group_wrapper.hpp:72
void updateValidPoints()
Calculate and set the valid points bitfield based on drop reasons.
VoyantHeaderWrapper & headerMut()
Get mutable access to the common header.
Definition point_group_wrapper.hpp:60
const VoyantHeaderWrapper & header() const
Get the common header.
Definition point_group_wrapper.hpp:54
Definition point_group.capnp.h:370
Definition point_group.capnp.h:323