[][src]Module bader::voxel_map

Provides the VoxelMap for storing the maxima and weights of partioned voxels.

Structs

Lock

A lock guard for write access to VoxelMap.weight_map

VoxelMap

A structure for building and processing the map between voxel and maxima. Bader maxima are stored in the voxel_map whilst the contributing weights are stored in the weight_map. The weight_map is only written to once by each point and so once a value has been written it is safe to read by any thread. To check it has been written to weight_get monitors the state of corresponding voxel_map value. Writing to the map is acheived by acquiring the lock, noting the length of the weight_map, pushing the weight vector for voxel p to the weight_map, droping the write lock and then storing the index of the inserted vector using weight_store.

Enums

Voxel

Describes the state of the voxel.