|
libpniio
|
describe a selection in an HDF5 file
#include <selection.hpp>

Public Member Functions | |
| selection () noexcept | |
| default constructor More... | |
| selection (size_t n) | |
| constructor More... | |
| const type_imp::index_vector_type & | offset () const noexcept |
| get reference to offset vector More... | |
| void | offset (const type_imp::index_vector_type &offset) |
| set offset vector More... | |
| void | offset (type_imp::index_type value) noexcept |
| set offset vector More... | |
| void | offset (size_t index, size_t value) |
| set offset More... | |
| const type_imp::index_vector_type & | stride () const noexcept |
| get refeference to stride vector More... | |
| void | stride (const type_imp::index_vector_type &value) |
| set stride vector More... | |
| void | stride (type_imp::index_type value) noexcept |
| set stride More... | |
| void | stride (size_t index, type_imp::index_type value) |
| set stride More... | |
| const type_imp::index_vector_type & | count () const noexcept |
| get reference to count vector More... | |
| void | count (const type_imp::index_vector_type &value) |
| set count values More... | |
| void | count (type_imp::index_type value) noexcept |
| set count values More... | |
| void | count (size_t index, type_imp::index_type value) |
| set count value More... | |
| void | update (const type_imp::selection_vector_type &s) |
| update selection More... | |
Private Attributes | |
| type_imp::index_vector_type | _offset |
| buffer for offset values More... | |
| type_imp::index_vector_type | _stride |
| buffer for stride values More... | |
| type_imp::index_vector_type | _count |
| buffer for count values More... | |
|
noexcept |
| pni::io::nx::h5::selection::selection | ( | size_t | n | ) |
| n | number of dimensions of the original field |
|
noexcept |
| void pni::io::nx::h5::selection::count | ( | const type_imp::index_vector_type & | value | ) |
Set count values from a user provided vector.
| shape_mismatch_error | if vector size does not match selection rank |
| value | vector with new count values |
|
noexcept |
Set all count entries to value.
| value | new value for all count entries |
| void pni::io::nx::h5::selection::count | ( | size_t | index, |
| type_imp::index_type | value | ||
| ) |
Set the count value for a particular dimension.
| index_error | if dimension index exceeds the rank of the dimension |
| index | dimension index |
| value | new count value for the selected dimension |
|
noexcept |
| void pni::io::nx::h5::selection::offset | ( | const type_imp::index_vector_type & | offset | ) |
Use offset data from an user provided vector.
| shape_mismatch_error | if rank of selection an size of offset vector do not match |
| offset | vector with new offset data |
|
noexcept |
Set all elements of the offset vector to value.
| value | new offset value |
| void pni::io::nx::h5::selection::offset | ( | size_t | index, |
| size_t | value | ||
| ) |
Set offset value for dimension index to value.
| index_error | if index exceeds the total rank of the selection |
| index | dimension index for which to set the offset |
| value | new offset value |
|
noexcept |
| void pni::io::nx::h5::selection::stride | ( | const type_imp::index_vector_type & | value | ) |
Set the stride vector from a user provided vector.
| shape_mismatch_error | if vector size does not match the total rank of the selection |
| value | vector with new stride values |
|
noexcept |
Set all stride components to value.
| value | new value for all stride components |
| void pni::io::nx::h5::selection::stride | ( | size_t | index, |
| type_imp::index_type | value | ||
| ) |
Set the stride value for a particular dimension.
| index_error | if the dimension index exceeds the rank of the selection |
| index | dimension index |
| value | stride value for the selected dimension |
| void pni::io::nx::h5::selection::update | ( | const type_imp::selection_vector_type & | s | ) |
Set selection propertires from a vector of slices.
| shape_mismatch_error | if vector size and selection length do not match |
| s | slice vector |
|
private |
|
private |
|
private |
1.8.8