forked from jsharpe/hdf5
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathslab.hpp
26 lines (19 loc) · 904 Bytes
/
slab.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#ifndef hdfslabH
#define hdfslabH
#include "hdf5/traits.hpp"
#include <vector>
namespace hdf {
template <int order, class HDFImpl = HDF5Traits>
class Slab : public HDFImpl::slab_type {
public:
Slab(const std::vector<hsize_t>& dims) : HDFImpl::slab_type(dims) {}
Slab(const std::vector<hsize_t>& dims, const std::vector<hsize_t>& maxdims) : HDFImpl::slab_type(dims, maxdims) {}
Slab(const Slab<order, HDFImpl>& orig, const std::vector<hsize_t>& offset, const std::vector<hsize_t>& stride,
const std::vector<hsize_t>& count)
: HDFImpl::slab_type(orig, offset, stride, count) {}
Slab(const Slab<order, HDFImpl>& orig, const std::vector<hsize_t>& offset, const std::vector<hsize_t>& stride,
const std::vector<hsize_t>& count, const std::vector<hsize_t>& block)
: HDFImpl::slab_type(orig, offset, stride, count, block) {}
};
} // namespace hdf
#endif