|
vitrio 0.1.4
High-throughput image I/O for Cryo-Electron Microscopy (CryoEM)
|
Groups a list of image locations by file. More...
#include <vitrio/image_location_grouping.hpp>
Classes | |
| class | group |
| The locations of one file in an image_location_grouping. More... | |
Public Member Functions | |
| image_location_grouping (span< const image_location > locations) | |
| Group a list of locations by file. | |
| image_location_grouping (const image_location_grouping &other) | |
| image_location_grouping (image_location_grouping &&other) noexcept | |
| image_location_grouping & | operator= (const image_location_grouping &other) |
| image_location_grouping & | operator= (image_location_grouping &&other) noexcept |
| std::size_t | get_group_count () const noexcept |
| Get the number of groups. | |
| group | get_group (std::size_t index) const |
| Get the group of a file. | |
Groups a list of image locations by file.
Each file has one group, and the groups are in ascending order of key. The grouping therefore does not depend on the order of the locations.
A file is either addressed as a whole, or has the stack indices of its locations. A file that any location addresses as a whole has no indices, because the whole file includes them.
Two locations belong to the same file if their keys are equal strings.
|
explicit |
Group a list of locations by file.
| locations | The locations to group. |
| group vitrio::image_location_grouping::get_group | ( | std::size_t | index | ) | const |
Get the group of a file.
| index | Index of the group. |
| std::out_of_range | If index is not below get_group_count. |
|
noexcept |
Get the number of groups.