Go to the documentation of this file.
9 #ifndef H5SLICE_TRAITS_HPP
10 #define H5SLICE_TRAITS_HPP
27 explicit ElementSet(std::initializer_list<std::size_t> list);
32 explicit ElementSet(std::initializer_list<std::vector<std::size_t>> list);
38 explicit ElementSet(
const std::vector<std::size_t>& element_ids);
43 explicit ElementSet(
const std::vector<std::vector<std::size_t>>& element_ids);
46 std::vector<std::size_t> _ids;
48 template <
typename Derivate>
53 template <
typename Derivate>
64 const std::vector<size_t>& count,
65 const std::vector<size_t>& stride = std::vector<size_t>())
90 void read(T& array)
const;
100 template <
typename T>
110 template <
typename T>
111 void write(
const T& buffer);
122 template <
typename T>
129 #endif // H5SLICE_TRAITS_HPP
Selection: represent a view on a slice/part of a dataset.
Definition: H5Selection.hpp:23
ElementSet(std::initializer_list< std::size_t > list)
Create a list of points of N-dimension for selection.
Definition: H5Slice_traits_misc.hpp:59
void write_raw(const T *buffer, const DataType &dtype=DataType())
Definition: H5Slice_traits_misc.hpp:218
HDF5 Data Type.
Definition: H5DataType.hpp:42
void read(T &array) const
Definition: H5Slice_traits_misc.hpp:158
Definition: H5Slice_traits.hpp:54
Selection select(const std::vector< size_t > &offset, const std::vector< size_t > &count, const std::vector< size_t > &stride=std::vector< size_t >()) const
Select a region in the current Slice/Dataset of count points at offset separated by stride....
Definition: H5Slice_traits_misc.hpp:75
void write(const T &buffer)
Definition: H5Slice_traits_misc.hpp:200
Definition: H5Slice_traits.hpp:20
Definition: H5_definitions.hpp:15