153 void offset(
size_t index,
size_t value);
180 void stride(
size_t index,
size_t value);
204 void count(
size_t index,
size_t value);
231 void block(
size_t index,
size_t value);
275 virtual
size_t size() const override;
287 inline
void check_dimension_index(
size_t index, const std::
string &what)
const {
288 if (index >= rank()) {
289 std::stringstream ss;
290 ss <<
"Cannot set " << what <<
" value at dimension " << index <<
" for a Hyperslab"
291 <<
" of rank " << rank() <<
"!";
292 throw std::runtime_error(ss.str());
296 inline void check_container_size(
const Dimensions &container,
const std::string &what)
const {
297 if (container.size() != rank()) {
298 std::stringstream ss;
299 ss <<
"Cannot assign " << container.size() <<
" " << what <<
" values to a Hyperslab"
300 <<
" of rank " << rank() <<
"!";
301 throw std::runtime_error(ss.str());
306 #pragma warning(push)
307 #pragma warning(disable:4251)
dataspace base class
Definition: dataspace.hpp:41
hyperslab selection class
Definition: hyperslab.hpp:52
Hyperslab(const Dimensions &offset, const Dimensions &count, const Dimensions &stride)
constructor
size_t rank() const noexcept
get rank
Hyperslab(const Dimensions &offset, const Dimensions &block, const Dimensions &count, const Dimensions &stride)
constructor
~Hyperslab() override
destructor
Hyperslab(const Hyperslab &)=default
copy constructor
Hyperslab()
default constructor
Hyperslab(size_t rank)
constructor
Hyperslab(const Dimensions &offset, const Dimensions &block)
constructor
selection base class
Definition: selection.hpp:42
Dataspace operator||(const Dataspace &space, const Hyperslab &selection)
std::list< OperationWithSelection > SelectionList
Definition: selection.hpp:130
SelectionOperation
selection operator
Definition: type.hpp:95
SelectionList operator|(const Hyperslab &a, const Hyperslab &b)
SelectionType
selection type
Definition: type.hpp:71
top-level namespace of the entire library
Definition: attribute.hpp:45
std::vector< hsize_t > Dimensions
Definition: types.hpp:32
#define DLL_EXPORT
Definition: windows.hpp:29