139 size_t rank()
const noexcept;
152 void offset(
size_t index,
size_t value);
179 void stride(
size_t index,
size_t value);
203 void count(
size_t index,
size_t value);
230 void block(
size_t index,
size_t value);
250 virtual void apply(
const Dataspace &space,
254 inline void check_dimension_index(
size_t index,
const std::string &what)
const {
255 if (index >= rank()) {
256 std::stringstream ss;
257 ss <<
"Cannot set " << what <<
" value at dimension " << index <<
" for a Hyperslab" 258 <<
" of rank " << rank() <<
"!";
259 throw std::runtime_error(ss.str());
263 inline void check_container_size(
const Dimensions &container,
const std::string &what)
const {
264 if (container.size() != rank()) {
265 std::stringstream ss;
266 ss <<
"Cannot assign " << container.size() <<
" " << what <<
" values to a Hyperslab" 267 <<
" of rank " << rank() <<
"!";
268 throw std::runtime_error(ss.str());
273 #pragma warning(push) 274 #pragma warning(disable:4251) dataspace base class
Definition: dataspace.hpp:41
selection base class
Definition: selection.hpp:42
hyperslab selection class
Definition: hyperslab.hpp:51
Definition: attribute.hpp:43
SelectionOperation
selection operator
Definition: type.hpp:95
DLL_EXPORT Dataspace operator||(const Dataspace &space, const Hyperslab &selection)
std::vector< hsize_t > Dimensions
Definition: types.hpp:36
#define DLL_EXPORT
Definition: windows.hpp:35