5#include <vitrio/export.hpp>
6#include <vitrio/platform.hpp>
7#include <vitrio/span.hpp>
78 VITRIO_STD_MEMBER_INTERFACE
79 std::vector<std::
string> m_keys;
80 VITRIO_STD_MEMBER_INTERFACE
81 std::vector<std::
size_t> m_indices;
82 VITRIO_STD_MEMBER_INTERFACE
83 std::vector<std::
size_t> m_first_positions;
92class image_location_grouping::group
122 friend class image_location_grouping;
124 group(const std::
string &key,
span<const std::
size_t> indices) noexcept;
126 const std::
string *m_key;
127 span<const std::
size_t> m_indices;
The locations of one file in an image_location_grouping.
Definition image_location_grouping.hpp:93
const std::string & get_key() const noexcept
Get the key of the file.
bool is_whole() const noexcept
Check whether any location addresses the file as a whole.
span< const std::size_t > get_indices() const noexcept
Get the stack indices of the locations of the file.
std::size_t get_group_count() const noexcept
Get the number of groups.
image_location_grouping(span< const image_location > locations)
Group a list of locations by file.
group get_group(std::size_t index) const
Get the group of a file.
Address of an image file, or of one image or volume of a stack.
Definition image_location.hpp:29
A view of a contiguous sequence of elements.
Definition span.hpp:29