struct mp2p_icp_filters::PointCloudToVoxelGrid::voxel_t

Overview

Non-owning view of the point indices in a voxel. Backed by the flat index array inside PointCloudToVoxelGrid; valid only while the owning PointCloudToVoxelGrid is alive and unmodified. Trivially copyable (pointer + count, 16 bytes — no heap allocation).

#include <PointCloudToVoxelGrid.h>

struct voxel_t
{
    // fields

    const std::size_t* begin_ptr = nullptr;
    std::uint32_t count = 0;

    // methods

    std::size_t size() const;
    bool empty() const;
    const std::size_t* begin() const;
    const std::size_t* end() const;
    std::size_t operator [] (std::size_t i) const;
};