-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathslab.hpp
39 lines (31 loc) · 984 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
27
28
29
30
31
32
33
34
35
36
37
38
39
#ifndef hdfslabH
#define hdfslabH
#include <hdf5/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) {
}
};
}
#endif