9 #ifndef H5SLICE_TRAITS_HPP 10 #define H5SLICE_TRAITS_HPP 25 template <
typename Derivate>
30 explicit ElementSet(
const std::vector<std::size_t>& element_ids);
33 std::vector<std::size_t>
_ids;
35 template <
typename Derivate>
39 template <
typename Derivate>
48 Selection select(
const std::vector<size_t>& offset,
49 const std::vector<size_t>& count,
50 const std::vector<size_t>& stride = std::vector<size_t>())
57 Selection select(
const std::vector<size_t>& columns)
const;
74 void read(T& array)
const;
83 void read(T* array)
const;
93 void write(
const T& buffer);
102 template <
typename T>
103 void write(
const T* buffer);
110 #endif // H5SLICE_TRAITS_HPP std::vector< std::size_t > _ids
ElementSet(const std::vector< std::size_t > &element_ids)
Selection: represent a view on a slice/part of a dataset.